/* Login Page Styles */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Branding */
.login-branding {
    flex: 1;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.branding-content {
    max-width: 400px;
    color: var(--white);
    z-index: 10;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.branding-content h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.branding-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.feature i {
    font-size: 1.2rem;
    color: var(--secondary);
}

/* Shapes */
.branding-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-branding .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-branding .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.login-branding .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Right Side - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--light);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

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

.login-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--gray);
}

/* Form */
.login-card .form-group {
    margin-bottom: 22px;
}

.login-card .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.login-card .form-group label i {
    color: var(--primary);
}

.login-card .form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
}

/* Login Button */
.login-card .btn-block {
    padding: 16px;
    font-size: 1.1rem;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
}

.login-footer p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    background: var(--white);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed var(--gray-light);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.login-footer a:hover {
    gap: 12px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.success {
    border-left: 4px solid var(--secondary);
}

.toast i {
    font-size: 1.3rem;
}

.toast.error i {
    color: #ef4444;
}

.toast.success i {
    color: var(--secondary);
}

.toast span {
    color: var(--dark);
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-branding {
        min-height: 250px;
        padding: 40px 20px;
    }

    .branding-content h1 {
        font-size: 2rem;
    }

    .features {
        display: none;
    }

    .login-form-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-branding {
        min-height: 200px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .branding-content h1 {
        font-size: 1.6rem;
    }

    .branding-content > p {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}
