
/* BLOOM - WEBSITE DESIGN */

:root {
    --yellow: #F4CE46;
    --cream: #FFFDF5;
    --charcoal: #292719;
    --muted: #817D70;
    --peach: #E9B8A5;
    --beige: #F9F4E5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
}

/* NAVIGATION */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
}

.logo {
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -2px;
}

.logo span {
    color: var(--yellow);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-size: 14px;
}

.nav-button {
    background: var(--yellow);
    padding: 13px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: bold;
}

/* MAIN SECTION */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 8%;
}

.hero-content {
    max-width: 520px;
}

.eyebrow {
    color: #B18B12;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hero-content h2 {
    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero-content h2 span {
    color: #D6A900;
}

.description {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 25px;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    padding: 16px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.primary-button {
    background: var(--yellow);
    color: var(--charcoal);
}

.secondary-button {
    border: 1px solid #D9D3C1;
    color: var(--charcoal);
}

.small-note {
    margin-top: 30px;
    font-size: 13px;
    color: #A29C8B;
}

/* HERO IMAGE */

.hero-image {
    flex: 1;
    max-width: 520px;
    height: 480px;
    border-radius: 30px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SIGNUP CARD */

.auth-card {
    display: none;
    background: white;
    width: 420px;
    max-width: 100%;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(65, 55, 20, 0.08);
}

.card-heading h3 {
    font-size: 25px;
    letter-spacing: -0.5px;
}

.card-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
}

/* AUTHENTICATION TABS */

.auth-tabs {
    display: flex;
    background: var(--beige);
    padding: 5px;
    border-radius: 30px;
    margin: 28px 0;
}

.auth-tabs button {
    width: 50%;
    border: none;
    padding: 12px;
    border-radius: 25px;
    background: transparent;
    font-weight: bold;
    cursor: pointer;
}

.auth-tabs .active {
    background: var(--yellow);
    color: var(--charcoal);
}

/* FORM */

#auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* FIELD GROUPS */

#name-field,
#username-field,
#invitation-field,
#confirm-password-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* LABELS */

#auth-form label {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 9px;
    color: var(--charcoal);
}

/* INPUTS */

#auth-form input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 15px;
    border: 1px solid #E7E2D5;
    border-radius: 10px;
    margin: 0 0 22px;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

#auth-form input:focus {
    border-color: #D6A900;
}

/* FIELD HINTS */

.password-hint {
    display: none;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: -14px;
    margin-bottom: 18px;
}

/* Show username hint normally */
#username-field .password-hint {
    display: block;
    margin-top: -13px;
    margin-bottom: 20px;
}

/* Show password hint when password is selected */
.password-wrapper:focus-within + .password-hint {
    display: block;
    margin-top: -14px;
    margin-bottom: 18px;
}

/* PASSWORD WRAPPER */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px !important;
}

/* PASSWORD VISIBILITY BUTTON */

.toggle-password {
    position: absolute;
    right: 15px;
    top: 0;
    height: 49px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FORGOT PASSWORD */

#forgot-password {
    display: none;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    margin-top: 0;
    margin-bottom: 20px;
}

#forgot-password:hover {
    color: var(--charcoal);
    text-decoration: underline;
}

/* SUBMIT BUTTON */

.submit-button {
    width: 100%;
    background: var(--charcoal);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    margin-top: 5px;
}

.submit-button:hover {
    opacity: 0.92;
}

/* TERMS */

.terms {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    margin-top: 22px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 25px;
    color: var(--muted);
    font-size: 12px;
}

/* TABLET */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card {
        width: 100%;
        max-width: 450px;
        margin: auto;
    }

    nav {
        display: none;
    }
}

/* MOBILE */

@media (max-width: 500px) {
    .navbar {
        padding: 20px 5%;
    }

    .hero {
        padding: 40px 5%;
    }

    .hero-content h2 {
        font-size: 43px;
    }

    .auth-card {
        padding: 25px 20px;
    }
}

/* FIX: STACK USERNAME AND INVITATION FIELDS */


/* BLOOM - USERNAME AND INVITATION ALIGNMENT FIX */

#auth-form > #name-field,
#auth-form > #username-field,
#auth-form > #invitation-field,
#auth-form > #confirm-password-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

#auth-form > #name-field > label,
#auth-form > #username-field > label,
#auth-form > #invitation-field > label,
#auth-form > #confirm-password-field > label {
    display: block;
    width: 100%;
    margin-bottom: 9px;
}

#auth-form > #name-field > input,
#auth-form > #username-field > input,
#auth-form > #invitation-field > input,
#auth-form > #confirm-password-field > input {
    display: block;
    width: 100%;
    margin-bottom: 22px;
}
