@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #d4af37;
    /* Metallic Gold */
    --primary-dark: #b8860b;
    --primary-light: #fef9e7;
    --accent-pink: #f4c9c6;
    /* Branded Nude Pink from Logo */
    --accent-color: #f8f1e7;
    --text-color: #2c3e50;
    --bg-gradient: linear-gradient(135deg, #fffcfc 0%, #f4f3f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 50px rgba(31, 38, 135, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
    --anim-gentle: cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.main-logo {
    width: 65px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-logo-img {
    height: 40px;
    width: auto;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none !important;
    overflow: hidden !important;
    /* Lock viewport scroller */
    width: 100%;
    height: 100% !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    font-family: var(--font-body, 'Outfit', sans-serif);
    background-color: #fffcfc;
    background-image:
        radial-gradient(var(--accent-pink) 1.2px, transparent 1.2px),
        radial-gradient(at 0% 0%, rgba(244, 201, 198, 0.2) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.15) 0px, transparent 50%);
    background-size: 32px 32px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    height: 100% !important;
    min-height: 100vh;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Body is the ONLY scroller */
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}


/* Auth Page Centering */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
    box-sizing: border-box;
}

/* Background Decoration */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-premium);
    animation: slideUpFade 1.2s var(--anim-gentle) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.header p {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 300;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: white;
}

/* Prismatic Luxury Button */
.login-btn-rainbow {
    background: linear-gradient(270deg, #d4af37, #f4c9c6, #9b59b6, #3498db, #27ae60, #f1c40f, #e67e22, #d4af37);
    background-size: 400% 400%;
    animation: rainbowFlow 6s ease infinite;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: none;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

@keyframes rainbowFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Raining Celebration Background */
.wedding-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.rain-item {
    position: absolute;
    top: -50px;
    font-size: 1.5rem;
    opacity: 0.35;
    animation: fall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s var(--anim-gentle);
    margin-top: 1.2rem;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

.footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* Micro-animations */
.input-focus-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-group input:focus+.input-focus-bg {
    width: 100%;
}

/* Date Input Styling */
.date-input {
    color: var(--text-color) !important;
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(0);
    /* Ensure icon is visible on light bg */
    cursor: pointer;
}

/* Toast System */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.6s var(--anim-gentle);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #e6ffec;
    color: #27ae60;
}

.toast-error .toast-icon {
    background: #fff1f0;
    color: #e74c3c;
}

.toast-info .toast-icon {
    background: #f0f7ff;
    color: #0077ff;
}

.toast-content {
    flex: 1;
}

.toast-title {
    display: block;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.toast-msg {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .auth-page {
        min-height: 100vh;
        padding: 0;
        align-items: flex-start;
    }

    .login-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 4rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .onboarding-container {
        min-height: 100vh;
    }
}