/* ===============================
   HAZEL - BLACK & GOLD THEME
================================ */

/* Google Style Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --gold: #d4af37;
    --gold-light: #f3df9b;
    --gold-dark: #9c7924;
    --black: #050505;
    --black-soft: #111111;
    --text: #f5f1e8;
    --muted: #aaa4a4;
    --glass: rgba(15, 15, 15, 0.88);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.09), transparent 35%),
        linear-gradient(135deg, #000000, #111111 55%, #030303);
    color: var(--text);
    position: relative;
}

/* ===============================
   BACKGROUND PARTICLES
================================ */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ===============================
   LOADING / INTRO SCREEN
================================ */

#loading-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(212, 175, 55, 0.10), transparent 40%),
        linear-gradient(135deg, #000000, #101010 55%, #020202);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* JS can add this class to hide the intro */
#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===============================
   INTRO ANIMATION
================================ */

.intro-animation {
    position: relative;
    width: 230px;
    height: 230px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Heart Reveal */

.heart-reveal {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    font-size: 82px;
    opacity: 0;
    transform: scale(0.2);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    animation: heartReveal 2.2s ease forwards;
}

.heart-reveal i {
    animation: heartPulse 1.5s ease-in-out infinite;
}

/* Rose Reveal */

.rose-reveal {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-light);
    font-size: 78px;
    opacity: 0;
    transform: scale(0.2) rotate(-25deg);
    filter:
        drop-shadow(0 0 12px rgba(212, 175, 55, 0.65))
        drop-shadow(0 0 30px rgba(212, 175, 55, 0.25));
    animation: roseReveal 2.4s ease forwards;
    animation-delay: 1.8s;
}

/* Petal Container */

.rose-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Individual Petals */

.petal {
    position: absolute;
    width: 10px;
    height: 17px;
    border-radius: 80% 20% 80% 20%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    opacity: 0;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
    animation: petalFloat 3.5s ease-in-out infinite;
}

.petal-one {
    top: 20%;
    left: 22%;
    animation-delay: 1.8s;
}

.petal-two {
    top: 30%;
    right: 18%;
    animation-delay: 2.1s;
}

.petal-three {
    top: 65%;
    left: 18%;
    animation-delay: 2.4s;
}

.petal-four {
    top: 72%;
    right: 23%;
    animation-delay: 2.7s;
}

.petal-five {
    top: 48%;
    left: 8%;
    animation-delay: 3s;
}

.petal-six {
    top: 45%;
    right: 8%;
    animation-delay: 3.3s;
}

/* ===============================
   INTRO TITLE
================================ */

.intro-title {
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: titleReveal 1.2s ease forwards;
    animation-delay: 3.2s;
}

.intro-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.intro-title p {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gold-light);
}

/* ===============================
   LOADING MESSAGE
================================ */

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 35px;
    opacity: 0;
    animation: loadingReveal 1s ease forwards;
    animation-delay: 4s;
}

.loader {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.18);
    border-top: 3px solid var(--gold);
    animation: spin 1s linear infinite;
}

.loading-message p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    text-align: center;
}

/* ===============================
   LOGIN CARD
================================ */

.login-container {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 430px;
    padding: 40px 35px;
    background: var(--glass);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(212, 175, 55, 0.06);
    text-align: center;
    animation: fade 0.9s ease;
}

/* ===============================
   LOGIN LOGO
================================ */

.logo {
    width: 85px;
    height: 85px;
    margin: auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    color: #080808;
    border: 1px solid rgba(243, 223, 155, 0.65);
    box-shadow:
        0 0 0 5px rgba(212, 175, 55, 0.08),
        0 10px 30px rgba(212, 175, 55, 0.2);
}

/* ===============================
   LOGIN HEADINGS
================================ */

.login-container h1 {
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 30px;
    font-weight: 700;
}

.subtitle {
    margin: 10px 0 30px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ===============================
   INPUT BOX
================================ */

.input-box {
    position: relative;
    margin-bottom: 22px;
}

.input-box input {
    width: 100%;
    height: 55px;
    padding: 0 50px;
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.input-box input::placeholder {
    color: #8d8980;
}

.input-box input:focus {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}

.input-box i:first-child {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

/* Password Toggle */

#togglePassword {
    position: absolute;
    right: 18px;
    top: 0;
    width: 42px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    cursor: pointer;
    color: #999084;
    transition: color 0.3s ease;
    z-index: 2;
}

#togglePassword:hover {
    color: var(--gold-light);
}

/* ===============================
   FORGOT PASSWORD
================================ */

.forgot-password {
    text-align: center;
    margin: 8px 0 20px;
}

.forgot-password a {
    color: var(--gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ===============================
   LOGIN BUTTON
================================ */

#loginBtn {
    width: 100%;
    min-height: 55px;
    border: 1px solid rgba(243, 223, 155, 0.35);
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    color: #080808;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.16);
}

#loginBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
}

#loginBtn:active {
    transform: translateY(0);
}

/* ===============================
   SIGN UP
================================ */

.signup-text {
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
}

.signup-text a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-text a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ===============================
   FOOTER
================================ */

.login-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.login-footer p {
    color: #77716a;
    font-size: 11px;
    letter-spacing: 0.4px;
}

/* ===============================
   ANIMATIONS
================================ */

@keyframes heartReveal {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }

    25% {
        opacity: 1;
        transform: scale(1.15);
    }

    45% {
        transform: scale(0.95);
    }

    65% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.45);
    }
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes roseReveal {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-25deg);
    }

    45% {
        opacity: 1;
        transform: scale(1.15) rotate(8deg);
    }

    70% {
        transform: scale(0.95) rotate(-4deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes petalFloat {
    0% {
        opacity: 0;
        transform: translateY(18px) rotate(0deg) scale(0.5);
    }

    25% {
        opacity: 0.85;
    }

    70% {
        opacity: 0.75;
        transform: translateY(-22px) rotate(100deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-45px) rotate(180deg) scale(0.5);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
        letter-spacing: 3px;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 8px;
    }
}

@keyframes loadingReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 500px) {

    body {
        padding: 20px 0;
    }

    .login-container {
        padding: 35px 25px;
        border-radius: 24px;
    }

    .logo {
        width: 75px;
        height: 75px;
        font-size: 30px;
    }

    .login-container h1 {
        font-size: 27px;
    }

    .intro-animation {
        width: 190px;
        height: 190px;
    }

    .heart-reveal {
        font-size: 70px;
    }

    .rose-reveal {
        font-size: 65px;
    }

    .intro-title h1 {
        font-size: 34px;
        letter-spacing: 6px;
    }

    .intro-title p {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .loading-message {
        margin-top: 25px;
    }
}

/* Short screens */

@media (max-height: 700px) {

    .intro-animation {
        width: 170px;
        height: 170px;
        margin-bottom: 5px;
    }

    .heart-reveal {
        font-size: 65px;
    }

    .rose-reveal {
        font-size: 60px;
    }

    .intro-title h1 {
        font-size: 32px;
    }

    .loading-message {
        margin-top: 20px;
    }
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

       }
