/* Navbar brand text styling to match landing page */
.nav-brand {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.brand-text {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.nav-brand span {
    color: #ffffff !important;
}

.gradient-text {
    background: none !important;
    background-size: none !important;
    -webkit-background-clip: none !important;
    -webkit-text-fill-color: white !important;
    background-clip: none !important;
    animation: none !important;
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
}

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 50%, #e0f2fe 100%);
    position: relative;
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e40af' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.login-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(30, 64, 175, 0.1);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(30, 64, 175, 0.12);
    animation: slideInLeft 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 35px;
}

.role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.role-btn i {
    font-size: 1.8rem;
    color: var(--primary);
}

.role-btn:hover {
    background: rgba(30, 64, 175, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.role-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

.role-btn.active i {
    color: white;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.login-form label i {
    color: var(--primary);
    margin-right: 8px;
}

.login-form input {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    color: #0f172a;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.remember input {
    width: auto;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--secondary);
}

.login-form button[type="submit"] {
    width: 100%;
    margin-bottom: 25px;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(30, 64, 175, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-google {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid rgba(30, 64, 175, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}

.btn-google:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    margin-top: 30px;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: var(--secondary);
}

.login-illustration {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 30px;
    padding: 60px;
    border: 2px solid rgba(30, 64, 175, 0.1);
    animation: slideInRight 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.illustration-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

.illustration-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 40px;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-mini {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 2px solid rgba(30, 64, 175, 0.1);
}

.stat-mini strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-mini span {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .login-illustration {
        display: none;
    }
    
    .role-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}