/* ===================================
   Login Page Styles
   =================================== */

.login-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* ===================================
   Left Panel
   =================================== */

.login-left {
    flex: 0 0 40%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c5aa0 100%);
    color: var(--color-white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.brand-icon {
    width: 50px;
    height: 50px;
    color: var(--color-white);
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.brand-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.login-welcome {
    z-index: 1;
    max-width: 400px;
}

.login-welcome h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.login-welcome p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.login-illustration {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3;
}

.login-illustration svg {
    width: 200px;
    height: 200px;
    animation: float 4s ease-in-out infinite;
}

/* ===================================
   Right Panel
   =================================== */

.login-right {
    flex: 1;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-medium);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--color-primary);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--color-gray-medium);
    margin-bottom: 2rem;
}

/* ===================================
   Form Styles
   =================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--color-gray-medium);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-gray-medium);
    transition: var(--transition);
}

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

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-gray-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

.divider span {
    position: relative;
    background-color: var(--color-white);
    padding: 0 1rem;
    color: var(--color-gray-medium);
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-gray-medium);
    margin-top: 1rem;
}

.form-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--color-secondary);
}

/* ===================================
   Animations
   =================================== */

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

/* ===================================
   Responsive
   =================================== */

@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 2rem;
    }
    
    .login-welcome h2 {
        font-size: 2rem;
    }
    
    .login-illustration {
        display: none;
    }
    
    .login-right {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.5rem;
    }
    
    .login-welcome h2 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

