
/* =====================================
   NAMUFORES — NATURE MINIMAL
===================================== */

:root {
    --forest: #214d35;
    --forest-dark: #173b28;
    --ivory: #f7f4ed;
    --paper: #fffefa;
    --text: #151b16;
    --muted: #777b73;
    --border: #e5e2d9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.auth-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    min-height: 100svh;
    padding: 40px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 15% 20%,
            rgba(220, 222, 201, 0.25),
            transparent 45%
        ),
        var(--ivory);
}

/* MAIN CARD */

.auth-card {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 420px;

    padding: 28px 27px 25px;

    overflow: hidden;

    background: var(--paper);
    border: 1px solid rgba(225, 223, 211, 0.75);
    border-radius: 5px;

    box-shadow: 0 18px 45px rgba(35, 40, 28, 0.12),
    0 4px 12px rgba(35, 40, 28, 0.06);
}

/* BRAND */

.brand {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 23px;

    color: #244532;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.brand-icon {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
}

/* FORM VISIBILITY */

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: form-appear 0.2s ease-out;
}

@keyframes form-appear {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADING */

.form-heading {
    margin-bottom: 20px;
}

.form-heading h1 {
    margin-bottom: 6px;

    color: #151a16;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.form-heading p {
    max-width: 310px;

    color: #777a72;
    font-size: 10px;
    line-height: 1.65;
}

/* GOOGLE BUTTON */

.google-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    width: 100%;
    height: 39px;

    padding: 0 10px;

    color: #252b26;
    background: #fff;

    border: 1px solid #e4e1d9;
    border-radius: 7px;

    cursor: pointer;
    font-size: 10px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.google-button:hover {
    background: #f9f8f4;
    border-color: #c9d0c4;
}

.google-icon {
    display: grid;
    place-items: center;

    flex: 0 0 17px;
    height: 22px;

    color: #4285f4;
    font-size: 18px;
    font-weight: 800;
}

/* DIVIDER */

.divider {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 16px 0 14px;

    color: #777b72;
    font-size: 9px;
    white-space: nowrap;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e5dc;
}

/* INPUT BOXES */

#signupFormElement,
#loginFormElement {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-wrap {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 35px;

    margin-bottom: 0;

    background: #fff;
    border: 1px solid #e4e1d9;
    border-radius: 7px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrap:focus-within {
    background: #fff;
    border-color: #779779;
    box-shadow: 0 0 0 2px rgba(49, 92, 58, 0.07);
}

.field-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 31px;
    height: 100%;

    color: #69766c;
}

.field-icon svg,
.password-toggle svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 8px 0 0;

    color: #26382b;
    background: transparent;

    border: 0;
    outline: none;
    box-shadow: none;

    font-size: 10px;
}

.input-wrap input::placeholder {
    color: #92948b;
    opacity: 1;
}

.input-wrap input:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

.password-toggle {
    display: grid;
    place-items: center;

    flex: 0 0 31px;
    height: 100%;

    color: #606c62;
    background: transparent;
    border: 0;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--forest);
}

/* FORGOT PASSWORD */

.forgot-row {
    display: flex;
    justify-content: flex-end;

    margin: 0 0 1px;
}

.forgot-row a {
    color: #657a63;
    font-size: 9px;
    text-decoration: none;
}

.forgot-row a:hover {
    color: var(--forest-dark);
    text-decoration: underline;
}

/* MAIN BUTTON */

.submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    height: 37px;

    margin-top: 5px;
    padding: 0 12px;

    color: #fff;
    background: var(--forest);

    border: 0;
    border-radius: 7px;

    cursor: pointer;

    font-size: 10px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-button > span:first-child {
    flex: 1;
    text-align: center;
    padding-left: 17px;
}

.button-arrow {
    font-size: 15px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.submit-button:hover {
    background: var(--forest-dark);
}

.submit-button:hover .button-arrow {
    transform: translateX(2px);
}

.submit-button:active {
    transform: translateY(1px);
}

/* SWITCH LOGIN / SIGN UP */

.switch-text {
    margin-top: 11px;

    color: #60665e;
    font-size: 9px;
    line-height: 1.7;
    text-align: center;
}

.text-button {
    margin-left: 3px;
    padding: 0;

    color: #365d3d;
    background: transparent;
    border: 0;

    cursor: pointer;

    font-size: inherit;
    font-weight: 700;
}

.text-button:hover {
    text-decoration: underline;
}

/* SIGN-UP SPECIFIC SPACING */

#signupForm .form-heading {
    margin-bottom: 17px;
}

#signupForm .divider {
    margin: 14px 0 12px;
}

#signupFormElement {
    gap: 5px;
}

#signupForm .submit-button {
    margin-top: 7px;
}

#signupForm .switch-text {
    margin-top: 10px;
}

/* KEYBOARD ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
    outline: 2px solid #71916b;
    outline-offset: 3px;
}


/* Adjust the entire Namufores authentication card */
.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 50px 32px 70px;
    margin-right: 37rem;
    transform: scale(3);
    transform-origin: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 23px;
    text-decoration: none;
    font-size: 15px;
    gap: 0px;
}

.brand-logo {
    display: block;
    width: 120px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
    object-position: left center;
    margin-right: -78px;
}


/* Tagline beside the authentication card */
.page-caption {
    position: absolute;
    top: 47%;
    left: calc(50% + 30px);

    transform: translateY(-50%);

    color: #26382c;
    font-family: 'Times New Roman', Times, serif, Helvetica, sans-serif;
    font-size: 40px;
    font-weight: 450;
    letter-spacing: 0.3px;
    white-space: nowrap;
}


/* ======================================
   NAMUFORES — SPLIT REVEAL INTRO
====================================== */

/* Tagline moves from screen center to the right */
.page-caption {
    animation-name: tagline-reveal;
}

.auth-card {
    position: relative;
    isolation: isolate;
    overflow: visible;

    /* Keep your existing sizing */
    width: 100%;
    max-width: 800px;
    padding: 80px 70px 65px;

    margin-right: 37rem;
    transform: scale(1.8);
    transform-origin: center;

    /* Main login box */
    background: #fffefa;
    border-radius: 20px;
    box-shadow: 0 22px 200px rgba(35, 40, 28, 0.30);
}


.auth-card-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #1b1b1b;
    border: 1px solid #0d0e0d;
    border-radius: 5px;
    transform: translate(16px, 16px);
    z-index: -1;
    pointer-events: none;
}


/* Wrapper moves together with the login card */
.auth-card-wrapper {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 445.2px;
    margin-right: 37rem;
}

/* Animate the wrapper and backing rectangle together */
.auth-card-wrapper {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 445.2px;
    margin-right: 37rem;

    opacity: 1;
    animation: card-reveal 2s
        cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes card-reveal {
    0% {
        opacity: 1;
        transform: translateX(280px);
    }

    40% {
        opacity: 1;
        transform: translateX(280px);
    }

    100% {
        opacity: 1;
        transform: translateX(-30px);
    }
}


/* Tagline entrance animation */
.page-caption {
    opacity: 0;
    animation: tagline-reveal 2s
        cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes tagline-reveal {
    0% {
        opacity: 0;
        transform: translateX(-420px);
    }

    40% {
        opacity: 1;
        transform: translateX(-420px);
    }

    100% {
        opacity: 1;
        transform: translateX(-40px);
    }
}

/* Wrapper controls the movement of both layers */
.auth-card-wrapper {
    position: relative;
    isolation: isolate;
    width: 801.36px; /* 445.2px × 1.8 */
    flex: 0 0 801.36px;
    margin-right: 37rem;

    animation: card-move 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Black backing stays attached to the wrapper */
.auth-card-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
    radial-gradient(
            ellipse at 15% 20%,
            rgba(220, 222, 201, 0.25),
            transparent 45%
        ),
        var(--ivory);

    border: 1px solid radial-gradient(
            ellipse at 15% 20%,
            rgba(220, 222, 201, 0.25),
            transparent 45%
        ),
        var(--ivory);
    border-radius: 0px;
    transform: translate(16px, 16px);
    z-index: -1;
    pointer-events: none;

    top: 10px;
    left: -200px;
    right: 40px;
    bottom: 40px;
}

.auth-card-wrapper::before {
    opacity: 1;
    animation: none;
}

/* Card stays inside the wrapper */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    transform: none;
    animation: none;

    opacity: 0;
    animation: card-face-reveal 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes card-face-reveal {
    0% { opacity: 0; }
    40%, 100% { opacity: 1; }
}

/* Animate the wrapper only */
@keyframes card-move {
    0%, 40% {
        transform: translateX(225px);
    }

    100% {
        transform: translateX( -200px);
    }
}

/* Keep the tagline from colliding with the card on smaller screens */
@media (max-width: 850px) {
    .page-caption {
        display: none;
        
    }
}



/* MOBILE */

@media (max-width: 480px) {
    .auth-page {
        padding: 18px 13px;
    }

    .auth-card {
        max-width: 390px;
        padding: 26px 21px 23px;
    }

    .form-heading h1 {
        font-size: 24px;
    }

    .input-wrap {
        height: 39px;
    }

    .submit-button {
        height: 42px;
    }

    .google-button {
        height: 42px;
    }
}

@media (max-width: 340px) {
    .auth-card {
        padding: 23px 16px 20px;
    }

    .form-heading h1 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


.brand {
    font-size: 16px;
}

.brand-icon {
    font-size: 19px;
}

.form-heading h1 {
    font-size: 29px;
}

.form-heading p {
    font-size: 12px;
}

.google-button {
    height: 46px;
    font-size: 12px;
}

.divider {
    font-size: 11px;
}

.input-wrap {
    height: 43px;
}

.input-wrap input {
    font-size: 12px;
}

.field-icon,
.password-toggle {
    flex-basis: 35px;
}

.submit-button {
    height: 46px;
    font-size: 12px;
}

.switch-text {
    font-size: 11px;
}

.auth-card {
    padding-left: 35px;
    padding-right: 35px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.auth-card {
    width: min(645px, calc(100vw - 40px));
    max-width: none;
}

.auth-card {
    min-height: 750px;
    padding-top: 55px;
    padding-bottom: 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    margin-bottom: 36px;
}

.form-heading {
    margin-bottom: 28px;
}

.google-button {
    height: 56px;
}

.divider {
    margin: 24px 0;
}

#signupFormElement,
#loginFormElement {
    gap: 10px;
}

.input-wrap {
    height: 54px;
}

.submit-button {
    height: 58px;
    margin-top: 12px;
}

.switch-text {
    margin-top: 18px;
}

.brand {
    font-size: 20px;
}

.form-heading h1 {
    font-size: 38px;
}

.form-heading p {
    font-size: 16px;
}

.google-button,
.input-wrap input,
.submit-button {
    font-size: 16px;
}

.divider,
.forgot-row a,
.switch-text {
    font-size: 14px;
}