/* 音芽注册登录页面增强样式 */

.auth-info-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--public-soft);
    border: 1px solid var(--public-line);
    border-radius: 8px;
    color: var(--public-text);
    font-size: 14px;
    line-height: 1.6;
}

.auth-info-box p {
    margin: 0 0 8px 0;
}

.auth-info-box strong {
    color: var(--public-text);
    font-weight: 600;
}

.auth-info-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

.auth-info-list li {
    position: relative;
    padding-left: 6px;
    margin-bottom: 6px;
    color: var(--public-muted);
}

.auth-info-list li::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: var(--public-accent);
    font-weight: bold;
}

.auth-info-list li:last-child {
    margin-bottom: 0;
}

/* 移动端优化 */
@media (max-width: 620px) {
    .auth-info-box {
        padding: 14px;
        font-size: 13px;
    }

    .auth-info-list {
        padding-left: 18px;
    }
}

/* H5 注册页沿用 Clarity 工作台的暖纸、墨色与制作进度语言。 */
.public-body--register {
    --public-accent: #ad3c3a;
    --public-accent-strong: #852d2d;
    --public-focus: rgba(173, 60, 58, .16);
    background: #ddd7ce;
}

.public-body--register .public-shell {
    border-color: rgba(73, 58, 44, .12);
    background: rgba(247, 244, 238, .94);
}

.public-body--register .public-main {
    min-height: calc(100svh - 65px);
}

.register-shell {
    display: grid;
    min-height: calc(100svh - 65px);
    align-content: center;
    justify-items: center;
    padding: 32px 20px 40px;
}

.register-card {
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid rgba(73, 58, 44, .12);
    border-radius: 22px;
    background: #fffdf9;
    box-shadow: 0 18px 50px rgba(57, 44, 33, .10);
}

.register-hero {
    padding: 28px 26px 22px;
    border-bottom: 1px solid #e6dfd5;
    background: #f7f4ee;
}

.register-kicker {
    margin: 0 0 8px;
    color: #ad3c3a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.register-hero h1 {
    margin: 0;
    color: #28241f;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: .01em;
}

.register-hero > p:last-of-type {
    margin: 10px 0 0;
    color: #756e66;
    font-size: 13px;
    line-height: 1.65;
}

.register-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.register-progress li {
    display: grid;
    gap: 6px;
    color: #a39b91;
    font-size: 10px;
}

.register-progress i {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #d4cabe;
}

.register-progress .is-current {
    color: #852d2d;
    font-weight: 700;
}

.register-progress .is-current i {
    background: #ad3c3a;
}

.register-body {
    padding: 24px 26px 26px;
}

.register-form {
    gap: 16px;
}

.public-body--register .auth-label {
    color: #28241f;
    font-size: 13px;
    font-weight: 700;
}

.public-body--register .auth-input,
.public-body--register .auth-password-shell {
    border-color: #d4cabe;
    border-radius: 10px;
    background: #fffdf9;
}

.public-body--register .auth-input:focus,
.public-body--register .auth-password-shell:focus-within {
    border-color: #ad3c3a;
    box-shadow: 0 0 0 3px rgba(173, 60, 58, .09);
}

.register-invite {
    color: #756e66;
    font-size: 13px;
}

.register-invite summary {
    cursor: pointer;
    color: #ad3c3a;
    font-weight: 700;
}

.register-invite[open] summary {
    margin-bottom: 12px;
}

.register-submit {
    display: grid;
    width: 100%;
    min-height: 56px;
    gap: 2px;
    align-content: center;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: #ad3c3a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(173, 60, 58, .17);
    cursor: pointer;
}

.register-submit:hover {
    background: #852d2d;
}

.register-submit span {
    font-size: 14px;
    font-weight: 700;
}

.register-submit small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
}

.register-note,
.register-login-link {
    margin: 18px 0 0;
    color: #756e66;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

.register-shell > .register-login-link {
    margin-top: 16px;
}

.redeem-card {
    width: min(100%, 430px);
}

.redeem-body {
    display: grid;
    gap: 18px;
}

.redeem-success-mark {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: #e7efe2;
    color: #4d6d42;
    font-size: 31px;
    font-weight: 800;
}

.redeem-summary {
    overflow: hidden;
    border: 1px solid #e6dfd5;
    border-radius: 12px;
    background: #f7f4ee;
}

.redeem-summary > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #e6dfd5;
}

.redeem-summary > div:last-child {
    border-bottom: 0;
}

.redeem-summary span {
    flex: none;
    color: #756e66;
    font-size: 12px;
}

.redeem-summary strong {
    color: #28241f;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}

.redeem-primary-link {
    text-decoration: none;
}

.redeem-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.redeem-help,
.redeem-warning {
    margin: 8px 0 0;
    color: #756e66;
    font-size: 12px;
    line-height: 1.55;
}

.redeem-warning {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ead7b2;
    border-radius: 10px;
    background: #fbf4e6;
    color: #755321;
}

.redeem-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.redeem-actions a,
.redeem-actions button {
    display: grid;
    min-height: 46px;
    place-items: center;
    border: 1px solid #d4cabe;
    border-radius: 10px;
    background: #f7f4ee;
    color: #28241f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.redeem-actions button {
    border-color: #ad3c3a;
    background: #ad3c3a;
    color: #fff;
    cursor: pointer;
}

.redeem-notes {
    margin: 0;
    padding: 16px 16px 16px 34px;
    border-top: 1px solid #e6dfd5;
    color: #756e66;
    font-size: 12px;
    line-height: 1.75;
}

.register-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #756e66;
    font-size: 12px;
    line-height: 1.6;
}

.register-consent input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #ad3c3a;
}

.register-consent a {
    color: #ad3c3a;
    font-weight: 700;
    text-decoration: none;
}

.legal-shell {
    align-content: start;
}

.legal-card {
    width: min(100%, 680px);
}

.legal-copy h2 {
    margin: 20px 0 7px;
    color: #28241f;
    font-size: 15px;
}

.legal-copy h2:first-child {
    margin-top: 0;
}

.legal-copy p {
    margin: 0;
    color: #756e66;
    font-size: 13px;
    line-height: 1.8;
}

.legal-copy .legal-note {
    margin: 22px 0 16px;
    padding-top: 16px;
    border-top: 1px solid #e6dfd5;
}

@media (max-width: 620px) {
    .public-body--register .public-main,
    .register-shell {
        min-height: calc(100svh - 57px);
    }

    .register-shell {
        align-content: start;
        padding: 18px 14px 28px;
    }

    .register-card {
        border-radius: 18px;
    }

    .register-hero {
        padding: 24px 20px 20px;
    }

    .register-hero h1 {
        font-size: 28px;
    }

    .register-body {
        padding: 20px;
    }
}
