/* ==========================================
   AUTH PAGES — PREMIUM COMMON STYLES
   ========================================== */

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 40px;
}

/* Animated gradient background */
.login-page-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(186,228,235,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(217,224,177,0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(98,81,74,0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand-surface-light) 0%, var(--brand-surface) 100%);
    z-index: 0;
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

/* Floating decorative shapes */
.login-page-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(186,228,235,0.25) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    z-index: 0;
    animation: floatBlob 8s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 40px) scale(1.15); }
}

.login-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(98,81,74,0.12),
        0 8px 24px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}

/* Left Panel (Brand) */
.login-brand-panel {
    flex: 0 0 380px;
    background: linear-gradient(160deg, var(--brand-primary) 0%, #4a3c36 60%, #3a2e28 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(186,228,235,0.1);
    bottom: -80px;
    left: -60px;
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(217,224,177,0.08);
    top: -50px;
    right: -40px;
}

.login-brand-panel .brand-logo {
    width: 140px;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.login-brand-panel h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.login-brand-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--brand-surface-light);
    opacity: 0.96;
    max-width: 300px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

.brand-features {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    text-align: left;
    position: relative;
    z-index: 1;
}

.brand-features li {
    font-size: 14px;
    line-height: 1.6;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    opacity: 0.98;
    font-weight: 600;
}

.brand-features li .feat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(217,224,177,0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--brand-surface-light);
}

/* Right Panel (Form) */
.login-form-panel {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 42px 48px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-panel .form-header {
    margin-bottom: 24px;
}

.login-form-panel .form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.login-form-panel .form-header p {
    font-size: 15px;
    color: #6F6259;
    margin: 0;
}

/* Input group */
.login-input-group {
    margin-bottom: 16px;
}

.login-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4A3C36;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6F6259;
    transition: color 0.3s;
}

.login-input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 2px solid var(--brand-surface);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: var(--brand-surface-light);
    transition: all 0.3s;
    outline: none;
}

.login-input-wrapper select {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 46px;
    border: 2px solid var(--brand-surface);
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: var(--brand-surface-light);
    transition: all 0.3s;
    outline: none;
    appearance: none;
}

.login-input-wrapper.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6F6259;
    border-bottom: 2px solid #6F6259;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.login-input-wrapper select:focus,
.login-input-wrapper input:focus {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(98,81,74,0.08);
}

.login-input-wrapper input:focus + i,
.login-input-wrapper input:focus ~ i {
    color: var(--brand-primary);
}

.login-input-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: var(--brand-default);
    background: var(--brand-surface-light);
    border: none;
    width: 34px;
    height: 34px;
    padding: 0;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.3s;
}

.login-input-wrapper .toggle-password:hover {
    color: var(--brand-primary);
}

.login-input-wrapper input[type="password"] {
    padding-right: 58px;
}

/* Remember & Forgot */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4A3C36;
    font-weight: 500;
    line-height: 1.45;
}

.remember-me input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

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

.forgot-link:hover {
    color: #4a3c36;
    text-decoration: underline;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #4a3c36 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.login-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217,224,177,0.2) 0%, rgba(186,228,235,0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(98,81,74,0.25);
}

.login-submit-btn:hover::before {
    opacity: 1;
}

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

.login-submit-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 16px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #D5D3CF;
}

.login-divider span {
    font-size: 13px;
    color: #6F6259;
    white-space: nowrap;
    font-weight: 600;
}

/* Google Sign-In */
.google-signin-btn {
    width: 100%;
    height: 52px;
    border: 2px solid var(--brand-surface);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
}

.google-signin-btn:hover {
    border-color: var(--brand-primary);
    background: var(--brand-surface-light);
    color: #333;
}

/* Footer link */
.login-footer-text {
    text-align: center !important;
    margin-top: 28px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    color: #6F6259 !important;
    display: block !important;
}

.login-footer-text a {
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.login-footer-text a:hover {
    color: #4a3c36 !important;
    text-decoration: underline !important;
}

/* Success / Error Toast */
.login-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-toast.show {
    transform: translateX(0);
}

.login-toast.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.login-toast.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* Password hint */
.input-hint {
    font-size: 12px;
    color: var(--brand-default);
    margin-top: 6px;
}

/* Responsive viewports */
@media (max-width: 991px) {
    .login-brand-panel {
        display: none;
    }
    .login-container {
        max-width: 480px;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    .login-page-wrapper {
        padding: 80px 16px 24px;
    }
    .login-form-panel {
        padding: 36px 24px;
    }
    .login-form-panel .form-header h1 {
        font-size: 24px;
    }
    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
