/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */

.login-page {
    height: 100vh;
    overflow: hidden;
}

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

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    padding: 40px 60px;
}

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

.login-form h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Form Groups */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row label {
    margin-bottom: 0;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
    z-index: 1;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.login-form .form-group input::placeholder {
    color: var(--text-light);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 13px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

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

/* Divider */
.divider {
    text-align: center;
    margin: 28px 0;
    position: relative;
    color: var(--text-gray);
}

.divider span {
    background: var(--bg-white);
    padding: 0 16px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.social-btn {
    flex: 1;
    max-width: 140px;
    height: 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

/* Register Link */
.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 24px;
}

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

.register-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Right Side - Branding */
.login-right {
    flex: 1;
    background: linear-gradient(135deg, #d1e3fe 0%, #4c6fa1 50%, #084093 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 50px 60px;
}

.login-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

.login-right::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    z-index: 1;
    margin-bottom: 20px;
}

.brand svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.login-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    max-width: 550px;
}

.login-right-content h1 {
    font-size: 52px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.login-right-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

/* Error & Success Messages */
.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.success-message {
    background: var(--success-color);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form input.error {
    border-color: var(--error-color);
}

/* Loading State */
.btn-login:disabled {
    background: var(--text-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-login:disabled:hover {
    transform: none;
}

/* Icon Animations */
.input-wrapper .input-icon {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-left {
        padding: 40px;
    }
    
    .login-right {
        padding: 40px;
    }
    
    .login-right-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-right {
        display: none;
    }
    
    .login-left {
        padding: 30px 20px;
    }
}

