/* Login Page Styles */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bs-secondary-text-emphasis), var(--bs-primary-text-emphasis));
    font-family: 'Inter';
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.theme-toggle-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}

/* Login Content Layout */
.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 700px;
}

/* Branding Side */
.login-branding {
    background: linear-gradient(135deg, #400e61, #170a4e);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="2" fill="white"/></svg>') repeat;
    background-size: 50px 50px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    z-index: 1;
    position: relative;
}

.brand-logo i {
    font-size: 2rem;
}

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    position: relative;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.feature-icon {
    color: rgba(255, 255, 255, 0.9);
}

.login-footer {
    margin-top: 2rem;
    z-index: 1;
    position: relative;
}

.login-footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.875rem;
    margin-right: 1rem;
}

.footer-links a:hover {
    opacity: 1;
}

/* Login Form Side */
.login-form-container {
    color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #170a4e, #0b0525);
}

.login-form-wrapper {
    max-width: 400px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #999;
    margin: 0;
}

/* Form Styles */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 1rem;
    color: white;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control::placeholder {
    color: #ddd;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
    z-index: 1;
}

.input-with-icon .form-control {
    padding-left: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ddd;
    cursor: pointer;
    z-index: 1;
}

.password-toggle:hover {
    color: white;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg,  #400e61, #170a4e);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: var(--font-semibold);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alternative Login */
.alternative-login {
    margin: 2rem 0;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #170a4e;
}

.divider span {
    padding: 0 1rem;
    color: #ddd;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #170a4e;
    border-radius: 0.5rem;
    color: #ddd;
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: var(--border-color);
}

/* Login Links */
.login-links {
    margin-top: 2rem;
}

.login-container .form-check {
    margin-bottom: 0;
}

.login-container .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-container .form-check-label {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.signup-text {
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.signup-text:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {
    .login-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .login-branding {
        display: none;
    }
    
    .login-form-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
    
    .theme-toggle-container {
        top: 1rem;
        right: 1rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .brand-title {
        font-size: 2rem;
    }
}

@media (max-height: 700px) {
    .login-container {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .login-content {
        min-height: auto;
    }
}