:root {
    --bg: #061125;
    --panel: #07142b;
    --accent: #08c2cf;
    --accent-2: #F8CA73;
    --muted: #9aa6bf;
    --danger: #FF463A;
    --white: #ffffff;
    --radius: 16px;
    --input-h: 64px;
    --maxw: 720px;
    --marcus-footer-background: #061125;
}

* {
    box-sizing: border-box
}

html, body {
    min-height: 100vh;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(8, 28, 60, 0.6), transparent),
    linear-gradient(180deg, rgba(6, 17, 37, 1), rgba(3, 7, 15, 1));
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.4;
    padding-bottom: 0;
}


.account-exists-link {
    font-size: 15px;
    font-weight: 500;
    color: #FFF;
    padding: 8px 0;
    border-bottom: 1px solid #FFF;
    cursor: pointer;
}

/* sign-up */

.header-logo-link {
    margin-right: auto;
}

main.main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    margin-bottom: clamp(64px, 8vw, 112px);
}

.card {
    width: 100%;
    max-width: var(--maxw);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(2, 6, 12, 0.6);
    backdrop-filter: blur(6px);
}

.sign-up-header {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    text-align: center;
    font-family: Montserrat, "Segoe UI", Roboto, Arial, sans-serif;
}

.subtitle {
    text-align: center;
    color: var(--color-muted);
    margin: 0 0 28px 0;
    font-size: 15px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.field {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.step-panel .field {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.signup-input {
    height: var(--input-h);
    width: 100%;
    padding: 14px 18px;
    padding-right: 48px;
    border-radius: 55px;
    border: 2px solid rgba(248, 202, 115, 0.18);
    background: transparent;
    color: var(--color-white);
    font-size: 18px;
    outline: none;
    transition: box-shadow .18s, border-color .18s, transform .12s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

input:focus {
    border-color: var(--color-accent-2);
    box-shadow: 0 4px 20px rgba(248, 202, 115, 0.11);
    transform: translateY(-1px);
}

.help {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 8px;
    padding-left: 8px;
}

.actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
}

.consent-list {
    display: grid;
    gap: 11px;
    margin: 20px 0 4px;
    padding: 16px;
    border: 1px solid rgba(248, 202, 115, 0.24);
    border-radius: 18px;
}

.consent-list legend {
    padding: 0 7px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
}

.consent-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
}

.consent-option a {
    color: var(--color-accent-2);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.consent-checkbox {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--color-accent);
}

.consent-error:empty {
    display: none;
}

.consent-error ul {
    margin: -5px 0 2px 30px;
    padding: 0;
    color: #ff9f9f;
    font-size: 12px;
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 55px;
    border: 2px solid var(--color-accent-2);
    background: transparent;
    color: var(--color-white);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    min-width: 180px;
    transition: all .18s ease;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--color-accent);
    box-shadow: 0 6px 18px rgba(8, 194, 207, 0.5);
    border-color: transparent;
    transition: 100ms all ease-in;
    --webkit-transition: 100ms all ease-in;
}

#register-btn {
    width: 95%;
}

.btn-primary:hover {
    cursor: pointer;
}

.user-agreement-link {
    text-decoration: underline;
    color: var(--color-accent);
}

.user-agreement-link:visited, .user-agreement-link:focus {
    text-decoration: underline;
    color: var(--color-accent);
}

.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.secondary {
    font-size: 14px;
    color: var(--color-muted);
    text-decoration: underline;
    border: none;
    background: none;
    padding: 8px 12px;
    cursor: pointer;
}

.step-panel {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    transition: max-height .38s cubic-bezier(.2, .9, .2, 1), opacity .25s;
    max-height: 0;
    opacity: 0;
}

.step-panel.open {
    max-height: 1200px;
    opacity: 1;
}

.password-help ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.password-reset-confirm-actions {
    width: 100%;
}

.error {
    color: var(--color-danger);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
}

.note {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 12px;
}

.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .header {
        padding-top: 28px;
        margin-bottom: 40px;
    }

    .header-logo {
        width: 48px;
        height: 48px;
    }

    .header-container {
        gap: 12px;
    }

    .logo-title {
        font-size: 18px;
        white-space: nowrap;
    }

    .account-exists-link {
        min-width: 0;
        padding: 6px 0;
        font-family: Arial, "Helvetica Neue", sans-serif;
        font-size: clamp(10px, 2.7vw, 12px);
        line-height: 1.2;
        text-align: right;
        white-space: nowrap;
    }

    .sign-up-header {
        font-size: 28px
    }

    .card {
        padding: 22px;
        border-radius: 14px;
    }

    input[type="email"], input[type="password"] {
        height: 56px;
        font-size: 16px
    }

    .btn {
        min-width: 150px;
        padding: 12px 18px;
        font-size: 16px
    }

    #register-btn,
    .password-reset-confirm-actions .btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .header-container {
        gap: 8px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .header-logo {
        width: 44px;
        height: 44px;
    }

    .logo-title {
        font-size: 17px;
    }

    .account-exists-link {
        font-size: 9px;
    }
}

/* sign-in */

.forget-password-link {
    padding: 4px 1px;
    border-bottom: 1px solid #08c2cf;
    display: block;
}

.password-reset-offer {
    color: var(--color-muted);
    font-size: 14px;
    margin-top: 12px;
}

.password-reset-offer a {
    color: #08c2cf;
    text-decoration: underline;
}

.password-reset-status {
    margin: 0;
    color: var(--color-accent);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.password-reset-status:empty {
    display: none;
}

.button-wrapper {
    justify-content: center;
    margin-bottom: 12px;
}

.form-bottom {
    flex-direction: column;
    align-items: center;
}

.message-before-form {
    border: 2px solid #F8CA73;
    border-radius: 55px;
    padding: 16px 47px;
    margin-bottom: 90px;
}

.message-paragraph {
    color: #FFF;
    font-size: 20px;
    font-weight: 500;
}

/* errors styling */

.error-msg {
    color: #FF463A;
    font-size: 16px;
    font-weight: 500;
    padding-inline-start: 0;
    margin-bottom: 18px;
    list-style: none;
}

/* footer */

footer {
    margin-top: auto;
}

.footer-container {
    flex-direction: column;
    align-items: center;
}

.footer-content {
    align-items: center;
}

.footer-logo {
    width: 70px;
    height: 70px;
}

.footer-rights {
    margin-right: 34px;
}
