@import url('https://fonts.googleapis.com/css2?family=Fjord+One&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Fjord+One&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&family=Fjord+One&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Satisfy&display=swap');

:root{
    --savory-sage: #818263;
    --avocado-green: #c2c395;
    --blush-beet: #ddbaae;
    --peach-protein: #efd7cf;
    --oat-latte: #dcd4c1;
    --honey-oatmilk: #F6EAD4;
    --cocunut-cream: #fffaf2;
    --dark-oak: #3D2B1F;
    --ink-black: #2c2725;
}

body{
    background-image: url("../uploads/login-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Roboto Condensed', sans-serif !important;
    color: var(--ink-black);
    margin: 0;
    padding: 0;
}

h2,h3,h4,h5,h6{
    font-family: 'Fjord One', serif;
    color: var(--dark-oak);
    font-weight: 700;
}

h1{
    font-family: 'Satisfy', cursive;
    color: var(--dark-oak);
}

*{
    box-sizing: border-box;
}

body::before{
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.auth-page{
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(320px, 500px);
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 1.5rem;
    overflow: hidden;
}

.auth-glow{
    position: absolute;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-glow-two{
    width: 320px;
    height: 320px;
    right: 10%;
    bottom: 8%;
    background: rgba(194, 195, 149, 0.38);
}

.auth-intro,
.auth-stage{
    position: relative;
    z-index: 1;
}

.auth-intro{
    color: var(--cocunut-cream);
    text-shadow: 0 14px 34px rgba(44, 39, 37, 0.24);
}

.eyebrow{
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    margin: 0 0 1rem;
    border-radius: 999px;
    background: rgba(255, 250, 242, 0.22);
    backdrop-filter: blur(12px);
    color: var(--cocunut-cream);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-intro h1{
    margin: 0;
    font-size: clamp(3rem, 8vw, 5.4rem);
    line-height: 0.95;
    color: var(--honey-oatmilk);
}

.intro-copy{
    max-width: 28rem;
    margin: 1.25rem 0 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.auth-stage{
    perspective: 1600px;
}

.auth-card{
    position: relative;
    width: min(100%, 440px);
    min-height: 640px;
    height: 640px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 24px 60px rgba(44, 39, 37, 0.2);
    transform-style: preserve-3d;
    will-change: transform, height;
    transition: height 0.35s ease;
}

.auth-face{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    border: 1px solid rgba(255, 250, 242, 0.45);
    background: rgba(255, 250, 242, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0s linear 0.28s;
}

.auth-face-back{
    transform: rotateY(-180deg);
    z-index: 1;
}

.auth-card:not(.is-flipped) .auth-face-front{
    transform: rotateY(0deg);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.auth-card:not(.is-flipped) .auth-face-back{
    transform: rotateY(-180deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.auth-card.is-flipped .auth-face-front{
    transform: rotateY(180deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.auth-card.is-flipped .auth-face-back{
    transform: rotateY(0deg);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.card-header h2{
    margin: 0.3rem 0 0.5rem;
    font-size: 2rem;
}

.card-header p{
    margin: 0;
}

.card-kicker{
    color: var(--savory-sage);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-form{
    display: grid;
    gap: 0.9rem;
    margin: 2rem 0 1.5rem;
}

.auth-form label{
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-oak);
}

.auth-form input{
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(129, 130, 99, 0.32);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-black);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input:focus{
    outline: none;
    border-color: var(--savory-sage);
    box-shadow: 0 0 0 4px rgba(129, 130, 99, 0.15);
    transform: translateY(-1px);
}

.form-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
}

.checkbox-field{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
}

.checkbox-field input{
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.text-link{
    color: var(--dark-oak);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover,
.toggle-button:hover{
    text-decoration: underline;
}

.primary-button,
.toggle-button{
    font: inherit;
    cursor: pointer;
}

.primary-button{
    margin-top: 0.5rem;
    padding: 1rem 1.2rem;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dark-oak), #5a4130);
    color: var(--honey-oatmilk);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 16px 28px rgba(61, 43, 31, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(61, 43, 31, 0.22);
}

.card-footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(129, 130, 99, 0.18);
    text-align: center;
}

.toggle-button{
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark-oak);
    font-weight: 700;
}

@media (max-width: 980px){
    .auth-page{
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem 3rem;
    }

    .auth-intro{
        text-align: center;
    }

    .intro-copy{
        margin-left: auto;
        margin-right: auto;
    }

    .auth-stage{
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 560px){
    .auth-card{
        min-height: 690px;
        height: 690px;
    }

    .auth-face{
        padding: 1.4rem;
    }

    .form-row,
    .card-footer{
        flex-direction: column;
    }
}

