/* Premium Authentication Pages Stylesheet */

:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --primary-light: #10b981;
    --neutral-50: #fafafa;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, #0f766e, #047857, #10b981, #064e3b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--neutral-900);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SHARED LAYOUT (Login & Register) ===== */
.login-wrapper,
.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    
    /* Glassmorphic Container */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

/* Left Side - Form Area */
.login-left,
.register-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: transparent;
}

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

/* Header Elements */
.login-logo,
.register-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.login-logo i,
.register-logo i {
    font-size: 2.25rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-logo:hover,
.register-logo:hover {
    transform: translateY(-2px);
}

.login-title,
.register-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle,
.register-subtitle {
    color: var(--neutral-600);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Navigation Links */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: var(--neutral-100);
    border-radius: 50px;
}

.back-link:hover {
    color: var(--primary);
    background: #e6f6f2; /* Soft green */
    transform: translateX(-4px);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

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

.alert i {
    font-size: 1.2rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Forms */
.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i.bi-envelope,
.input-wrapper i.bi-lock,
.input-wrapper i.bi-person,
.input-wrapper i.bi-lock-fill {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 2px solid var(--neutral-200);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--neutral-900);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-group input:focus + i,
.input-wrapper:focus-within i.bi-envelope,
.input-wrapper:focus-within i.bi-lock,
.input-wrapper:focus-within i.bi-person {
    color: var(--primary);
}

.form-group input::placeholder {
    color: var(--neutral-400);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-400);
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

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

/* Password Strength Meter */
.password-strength {
    display: flex;
    gap: 0.35rem;
    height: 4px;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    background: var(--neutral-200);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.strength-bar.active {
    background: var(--primary-light);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--neutral-600);
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(4, 120, 87, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 120, 87, 0.35);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dividers */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--neutral-600);
    font-size: 0.95rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--neutral-200);
}

.divider span {
    padding: 0 1.25rem;
}

/* Social Buttons */
.social-login,
.social-register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    background: white;
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.social-btn i {
    font-size: 1.25rem;
}

.social-btn.google i {
    color: #db4437; /* Google red */
}

.social-btn.facebook i {
    color: #1877f2;
}

/* Footers */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--neutral-600);
}

.login-footer a,
.register-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.25rem;
    transition: color 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Right Side - Hero Sections (Glassmorphic) */
.login-right,
.register-right {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.95) 0%, rgba(6, 95, 70, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Glassmorphic decorative circles */
.login-right::before,
.register-right::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    backdrop-filter: blur(10px);
    animation: float 10s ease-in-out infinite;
}

.login-right::after,
.register-right::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(0deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    backdrop-filter: blur(10px);
    animation: float 12s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.hero-feature i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 32px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== FORGOT PASSWORD PAGE SPECIFIC ===== */
.forgot-password-container {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.6);
    margin: 2rem auto;
}

.centered-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.fp-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.fp-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--neutral-900);
}

.fp-header p {
    color: var(--neutral-600);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .login-wrapper,
    .register-wrapper {
        grid-template-columns: 1fr;
        max-width: 550px;
        min-height: auto;
    }

    .login-right,
    .register-right {
        display: none;
    }

    .login-left,
    .register-left {
        padding: 3rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .login-wrapper,
    .register-wrapper {
        border-radius: 16px;
    }

    .login-left,
    .register-left {
        padding: 2rem 1.5rem;
    }

    .login-title,
    .register-title {
        font-size: 1.75rem;
    }

    .social-login,
    .social-register {
        grid-template-columns: 1fr;
    }
    
    .forgot-password-container {
        padding: 2rem 1.5rem;
    }
}