:root {
    --auth-bg: #fbf6ef;
    --auth-paper: #fffdf8;
    --auth-line: #eaded1;
    --auth-coral: #ec7457;
    --auth-coral-dark: #d85e43;
    --auth-teal: #2f817d;
    --auth-text: #222222;
    --auth-muted: #756f68;
}

.auth-body,
.member-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Noto Sans TC", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 220, 194, .7), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(229, 246, 240, .9), transparent 28%),
        linear-gradient(135deg, #fff7ef 0%, #fbf6ef 50%, #fffaf4 100%);
}

.auth-shell {
    width: min(1080px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    align-items: center;
    gap: 24px;
    padding: 42px 0;
}

.auth-brand-panel,
.auth-card {
    border: 1px solid var(--auth-line);
    border-radius: 34px;
    background: rgba(255, 253, 248, .86);
    box-shadow: 0 22px 58px rgba(99, 73, 45, .12);
}

.auth-brand-panel {
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 46px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(255,253,248,.92), rgba(255,240,232,.72)),
        url("https://images.unsplash.com/photo-1528712306091-ed0763094c98?q=80&w=1200&auto=format&fit=crop") center/cover;
}

.register-panel {
    background:
        linear-gradient(135deg, rgba(255,253,248,.92), rgba(232,247,241,.76)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?q=80&w=1200&auto=format&fit=crop") center/cover;
}

.auth-logo {
    position: absolute;
    left: 46px;
    top: 42px;
    font-family: "Noto Serif TC", serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--auth-coral-dark);
    text-decoration: none;
    line-height: 1;
}

.auth-logo:hover {
    color: var(--auth-coral-dark);
}

.auth-logo span {
    color: #ef886d;
}

.auth-logo.small {
    position: static;
    font-size: 34px;
}

.auth-subtitle {
    color: var(--auth-muted);
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-brand-panel h1 {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(40px, 4.6vw, 58px);
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 18px;
}

.auth-desc {
    max-width: 440px;
    color: #5f5a53;
    line-height: 1.9;
    font-size: 17px;
    font-weight: 600;
}

.auth-card {
    padding: 42px;
    background: rgba(255, 253, 248, .96);
}

.auth-card-head p {
    margin: 0 0 8px;
    color: var(--auth-coral);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}

.auth-card-head h2 {
    font-family: "Noto Serif TC", serif;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 24px;
}


.auth-entry-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -8px 0 24px;
    padding: 12px 14px;
    border: 1px solid rgba(47, 129, 125, .18);
    border-radius: 16px;
    background: rgba(238, 248, 244, .76);
    color: var(--auth-muted);
    font-size: 14px;
    font-weight: 800;
}

.auth-entry-note a {
    color: var(--auth-teal);
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4d4842;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    height: 56px;
    border: 1px solid var(--auth-line);
    border-radius: 18px;
    background: #fffaf4;
    outline: none;
    padding: 0 18px;
    color: #2b2926;
    font-weight: 600;
    transition: .2s;
}

.form-group input:focus {
    border-color: rgba(236, 116, 87, .65);
    box-shadow: 0 0 0 4px rgba(236, 116, 87, .12);
    background: #fff;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #d74f39;
    font-weight: 700;
}

.auth-submit {
    height: 58px;
    border: 0;
    border-radius: 18px;
    background: var(--auth-coral);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 15px 34px rgba(236, 116, 87, .24);
}

.auth-submit:hover {
    background: var(--auth-coral-dark);
}

.auth-switch {
    text-align: center;
    color: var(--auth-muted);
    font-weight: 700;
    margin: 22px 0 10px;
}

.auth-switch a,
.back-home {
    color: var(--auth-teal);
    font-weight: 900;
    text-decoration: none;
}

.back-home {
    display: block;
    text-align: center;
}

.member-header {
    padding: 18px 0;
    border-bottom: 1px solid var(--auth-line);
    background: rgba(255, 250, 244, .88);
    backdrop-filter: blur(16px);
}

.member-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    border: 1px solid #e5bda9;
    background: #fffaf4;
    color: #514c47;
    border-radius: 14px;
    padding: 10px 20px;
    font-weight: 900;
}

.member-main {
    padding: 46px 0;
}

.member-hero {
    padding: 42px;
    border: 1px solid var(--auth-line);
    border-radius: 32px;
    background: rgba(255, 253, 248, .92);
    box-shadow: 0 22px 58px rgba(99, 73, 45, .12);
    margin-bottom: 22px;
}

.member-hero h1 {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
}

.member-hero p {
    color: var(--auth-muted);
    font-weight: 700;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.member-card {
    min-height: 190px;
    padding: 26px;
    border: 1px solid var(--auth-line);
    border-radius: 26px;
    background: #fffdf8;
    box-shadow: 0 14px 32px rgba(97, 71, 44, .07);
}

.member-card span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff0e8;
    font-size: 22px;
    margin-bottom: 16px;
}

.member-card h3 {
    font-size: 20px;
    font-weight: 900;
}

.member-card p {
    color: var(--auth-muted);
    font-weight: 700;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .auth-brand-panel {
        min-height: 360px;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .auth-shell {
        width: calc(100% - 28px);
    }

    .auth-brand-panel,
    .auth-card,
    .member-hero,
    .member-card {
        border-radius: 24px;
    }

    .auth-brand-panel,
    .auth-card {
        padding: 28px;
    }

    .auth-logo {
        left: 28px;
        top: 26px;
        font-size: 36px;
    }

    .auth-card-head h2 {
        font-size: 32px;
    }

    .auth-entry-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-grid {
        grid-template-columns: 1fr;
    }
}
