﻿/* =========================================================
   ACCOUNT BOX SIZING
========================================================= */

.account-page,
.account-page *,
.account-page *::before,
.account-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   ACCOUNT / LOGIN
========================================================= */

.account-page {
    min-height: 100dvh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--color-text);
}


/* =========================================================
   SHELL
========================================================= */

.account-shell {
    width: min(100%, 420px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* =========================================================
   CARD
========================================================= */

.account-card {
    width: 100%;
    min-width: 0;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(23, 22, 20, .035), 0 1px 3px rgba(23, 22, 20, .025);
    box-sizing: border-box;
}


/* =========================================================
   BRAND
========================================================= */
.account-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    text-decoration: none;
}


.account-brand-logo {
    display: block;
    width: auto;
    height: 32px;
    max-width: 180px;
    object-fit: contain;
    transition: opacity var(--transition);
}

.account-brand:hover .account-brand-logo {
    opacity: .78;
}



/* =========================================================
   HEADER
========================================================= */

.account-header {
    margin-bottom: 1.75rem;
}


.account-eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: var(--color-text-muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.account-header h1 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
}


.account-header p {
    margin: .45rem 0 0;
    color: var(--color-text-soft);
    font-size: .8rem;
    line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}


.account-form-group {
    min-width: 0;
}


    .account-form-group label {
        display: block;
        margin-bottom: .45rem;
        color: var(--color-text);
        font-size: .76rem;
        font-weight: 650;
    }


/* =========================================================
   INPUT
========================================================= */

.account-input-wrap {
    position: relative;
    width: 100%;
}


.account-input-icon {
    position: absolute;
    top: 50%;
    left: .85rem;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}


    .account-input-icon i {
        font-size: .68rem;
    }


.account-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: .7rem .85rem .7rem 2.55rem;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: .85rem;
    line-height: 1.4;
    outline: none;
    appearance: none;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .account-input-wrap input::placeholder {
        color: var(--color-text-muted);
    }


    .account-input-wrap input:hover {
        border-color: rgba(23, 22, 20, .18);
    }


    .account-input-wrap input:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(23, 22, 20, .045);
    }


/* =========================================================
   HELP / VALIDATION
========================================================= */

.account-help {
    display: block;
    margin-top: .4rem;
    color: var(--color-text-muted);
    font-size: .65rem;
    line-height: 1.4;
}


.account-validation {
    display: block;
    margin-top: .4rem;
    color: #9a4c45;
    font-size: .66rem;
    line-height: 1.4;
}


/* =========================================================
   SUBMIT
========================================================= */

.account-submit {
    width: 100%;
    min-height: 50px;
    margin-top: .3rem;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: #fff;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 650;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}


    .account-submit:hover {
        background: #252320;
        box-shadow: 0 5px 18px rgba(23, 22, 20, .12);
    }


    .account-submit:active {
        transform: translateY(1px);
    }


    .account-submit i {
        font-size: .65rem;
    }


/* =========================================================
   FOOTER
========================================================= */

.account-footer {
    margin: 1.25rem 0 0;
    color: var(--color-text-muted);
    font-size: .62rem;
    text-align: center;
}


    .account-footer span {
        margin: 0 .25rem;
    }


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {

    .account-page {
        align-items: flex-start;
        padding: 2.5rem .85rem 2rem;
    }

    .account-brand {
        margin-bottom: 1.25rem;
    }

    .account-brand-logo {
        height: 38px;
        max-width: 160px;
    }

    .account-card {
        width: 100%;
        padding: 1.35rem;
        border-radius: 15px;
    }

    .account-header {
        margin-bottom: 1.4rem;
    }

        .account-header h1 {
            font-size: 1.35rem;
        }
}