* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f4f4f0;
    color: #111411;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 1px solid #dedfd9;
    background: #f4f4f0;
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #111411;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.05em;
}

.logo span {
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: #6f746f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: #111411;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-link {
    color: #6f746f;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.back-link:hover {
    color: #111411;
}

.account-page {
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 156px);
    margin: 0 auto;
    padding: 70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid #dedfd9;
    padding: 42px;
    box-shadow: 0 20px 60px rgba(17, 20, 17, .05);
}

.auth-card.account-card {
    width: min(700px, 100%);
}

.eyebrow {
    margin-bottom: 13px;
    color: #7ea43d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: .98;
    letter-spacing: -.045em;
}

.auth-card h1 span {
    color: #7ea43d;
}

.auth-description {
    margin: 0 0 30px;
    color: #777b77;
    font-size: 13px;
    line-height: 1.7;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #111411;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #dedfd9;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #111411;
    font-family: inherit;
    font-size: 14px;
}

.form-field input:focus {
    border-color: #9ebc5d;
    box-shadow: 0 0 0 3px rgba(185, 216, 108, .17);
}

.primary-button {
    width: 100%;
    min-height: 50px;
    border: 1px solid #111411;
    background: #111411;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition:
        background .2s ease,
        border-color .2s ease,
        opacity .2s ease;
}

.primary-button:hover {
    background: #242924;
    border-color: #242924;
}

.primary-button:disabled {
    opacity: .55;
    cursor: wait;
}

.message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #dedfd9;
    background: #f7f7f3;
    color: #555a55;
    font-size: 12px;
    line-height: 1.5;
}

.message.visible {
    display: block;
}

.message.error {
    border-color: #d5baba;
    background: #faf3f3;
    color: #7d3f3f;
}

.message.success {
    border-color: #cbd9b0;
    background: #f5f8ee;
    color: #4e6330;
}

.auth-switch {
    margin-top: 25px;
    color: #777b77;
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: #111411;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.account-row {
    padding: 20px 0;
    border-top: 1px solid #dedfd9;
}

.account-label {
    margin-bottom: 6px;
    color: #7a7e7a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.account-value {
    color: #111411;
    font-size: 14px;
    line-height: 1.6;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #dedfd9;
    background: #fff;
    color: #111411;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.account-action:hover {
    border-color: #111411;
}

.account-action.dark {
    border-color: #111411;
    background: #111411;
    color: #fff;
}

.account-action.dark:hover {
    background: #242924;
}

.site-footer {
    border-top: 1px solid #dedfd9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #777b77;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {

    .main-nav {
        gap: 16px;
    }

    .nav-container {
        gap: 18px;
    }
}

@media (max-width: 700px) {

    .nav-container {
        width: min(100% - 30px, 1180px);
    }

    .main-nav {
        display: none;
    }

    .account-page {
        width: min(100% - 30px, 1180px);
        padding: 40px 0;
    }

    .auth-card {
        padding: 30px 24px;
    }

    .auth-card h1 {
        font-size: 32px;
    }

    .footer-bottom {
        width: min(100% - 30px, 1180px);
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
    }
}