:root {
    color-scheme: light;
    --ink: #101513;
    --ink-soft: #27322d;
    --muted: #647067;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-solid: #ffffff;
    --line: #dbe3de;
    --field: #fbfcfa;
    --green: #2f6844;
    --green-dark: #1d442c;
    --green-soft: #e8f0eb;
    --orange: #d95d18;
    --orange-dark: #a94210;
    --danger: #b42318;
    --shadow: 0 18px 48px rgba(16, 21, 19, 0.16);
    --shadow-soft: 0 10px 30px rgba(16, 21, 19, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
}

.auth-body {
    background:
        linear-gradient(90deg, rgba(7, 10, 9, 0.18), rgba(7, 10, 9, 0.74)),
        url("images/amazon-dark-event.jpeg") center / cover fixed no-repeat,
        #101513;
}

.form-body,
.admin-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 247, 243, 0.96)),
        url("images/amazon-light.jpeg") top center / cover fixed no-repeat,
        #f5f7f3;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-page {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    width: min(1180px, 100%);
    margin: 0 auto;
}

.success-page {
    background:
        linear-gradient(90deg, rgba(7, 10, 9, 0.72), rgba(7, 10, 9, 0.38)),
        url("images/amazon-dark-clean.jpeg") center / cover fixed no-repeat;
}

.login-hero {
    color: #ffffff;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 0;
}

.hero-logo {
    width: min(250px, 70vw);
    height: auto;
    filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.42));
}

.hero-copy {
    max-width: 560px;
}

.hero-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 0.98;
    color: #ffffff;
}

.hero-copy p:last-child {
    margin: 0;
    max-width: 470px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

.login-panel {
    width: min(100%, 430px);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    backdrop-filter: blur(12px);
}

.brand,
.page-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    margin-bottom: 28px;
}

.brand-mark {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.page-logo {
    width: 118px;
    height: 88px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-hero .eyebrow {
    color: #f47a2b;
}

h1,
h2,
h3 {
    color: var(--ink);
}

h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.22;
}

h2,
h3 {
    margin-top: 0;
}

.login-form {
    display: grid;
    gap: 10px;
}

.logged-panel {
    display: grid;
    gap: 14px;
}

.logged-panel p,
.section-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.section-note {
    margin-bottom: 16px;
}

label {
    font-weight: 700;
    font-size: 0.92rem;
}

input,
select,
textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: var(--field);
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(217, 93, 24, 0.18);
    border-color: var(--orange);
    background: #ffffff;
}

button,
.primary-link-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    padding: 12px 16px;
    background: var(--green);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button {
    margin-top: 12px;
}

button:hover,
button:focus,
.primary-link-button:hover,
.primary-link-button:focus {
    background: var(--green-dark);
}

.full-button {
    width: 100%;
}

.secondary-action,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: none;
}

.secondary-action:hover,
.back-link:hover {
    color: var(--orange-dark);
    text-decoration: underline;
}

.admin-action {
    margin-left: 12px;
}

.signup-page {
    min-height: 100vh;
    padding: 28px;
}

.signup-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.signup-header,
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 227, 222, 0.78);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.signup-header h1,
.admin-header h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.form-section,
.volunteer-card,
.report-card,
.admin-section {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.form-section,
.volunteer-card {
    padding: 24px;
    margin-bottom: 18px;
}

.compact-section {
    box-shadow: none;
    padding: 18px;
    background: #fbfcfa;
}

.form-section h2,
.volunteer-card h2,
.form-section h3,
.admin-section h2 {
    margin: 0 0 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.wide {
    grid-column: 1 / -1;
}

.volunteer-title,
.signup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.volunteer-title {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.signup-actions {
    margin: 22px 0 8px;
}

.secondary-button,
.link-button {
    background: var(--green-soft);
    color: var(--green-dark);
    border: 1px solid rgba(47, 104, 68, 0.22);
}

.secondary-button:hover,
.secondary-button:focus,
.link-button:hover,
.link-button:focus {
    background: #d8e6dd;
    color: var(--green-dark);
}

.link-button {
    min-height: 38px;
    padding: 8px 12px;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 16px;
}

.checkbox-group span {
    width: 100%;
    font-weight: 800;
}

.checkbox-group label,
.question label,
.question-list ul {
    font-weight: 400;
}

.checkbox-control {
    width: auto;
    margin-right: 6px;
}

.question-list {
    display: grid;
    gap: 12px;
}

.question {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.question > span {
    font-weight: 800;
}

.question ul {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.question input[type='radio'] {
    width: auto;
    margin-right: 6px;
}

.admin-page {
    min-height: 100vh;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 28px;
}

.admin-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-solid);
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: none;
}

.menu-item.active,
.menu-item:hover {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.report-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-top: 4px solid var(--orange);
}

.report-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.report-card strong {
    font-size: 2rem;
    color: var(--green-dark);
}

.admin-section {
    margin-bottom: 18px;
    padding: 22px;
}

.finance-form {
    display: grid;
    gap: 16px;
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
}

td a {
    color: var(--green-dark);
    font-weight: 800;
}

.errorlist,
.form-alert ul {
    margin: 0;
    padding-left: 18px;
    color: var(--danger);
    font-size: 0.88rem;
}

.form-alert {
    border: 1px solid rgba(180, 35, 24, 0.24);
    border-radius: 6px;
    background: rgba(180, 35, 24, 0.08);
    padding: 10px 12px;
}

.success-alert {
    border-color: rgba(47, 104, 68, 0.24);
    background: rgba(47, 104, 68, 0.08);
    color: var(--green-dark);
    margin-bottom: 18px;
}

@media (max-width: 860px) {
    .auth-body,
    .form-body,
    .admin-body {
        background-attachment: scroll;
    }

    .auth-page {
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: center;
        gap: 22px;
        width: 100%;
    }

    .login-hero {
        min-height: auto;
        width: min(100%, 520px);
        align-items: center;
        gap: 18px;
        padding: 0;
        text-align: center;
    }

    .hero-logo {
        width: min(210px, 58vw);
    }

    .hero-copy {
        max-width: 440px;
    }

    .hero-copy h2 {
        font-size: 2.25rem;
        line-height: 1.05;
    }

    .hero-copy p:last-child {
        max-width: none;
        font-size: 1rem;
    }

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

    .signup-header,
    .admin-header {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    body {
        overflow-x: hidden;
    }

    .login-page,
    .signup-page,
    .admin-page {
        padding: 14px;
    }

    .login-panel,
    .form-section,
    .volunteer-card,
    .admin-section {
        padding: 16px;
    }

    .brand,
    .page-brand,
    .signup-header,
    .admin-header,
    .signup-actions,
    .volunteer-title {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .brand {
        margin-bottom: 22px;
    }

    .brand-mark {
        width: 76px;
        height: 76px;
    }

    .login-panel {
        width: 100%;
        max-width: 390px;
    }

    .login-form,
    .logged-panel {
        width: 100%;
    }

    .hero-logo {
        width: min(176px, 54vw);
    }

    .hero-copy h2 {
        font-size: 1.8rem;
    }

    .hero-copy p:last-child {
        display: none;
    }

    h1 {
        font-size: 1.24rem;
    }

    .signup-header,
    .admin-header {
        padding: 16px;
        text-align: center;
    }

    .signup-header h1,
    .admin-header h1 {
        font-size: 1.32rem;
    }

    .back-link {
        width: 100%;
        margin-top: 4px;
    }

    .page-logo {
        width: 126px;
        height: auto;
    }

    .form-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        flex-direction: column;
    }

    .menu-item,
    button,
    .primary-link-button,
    .secondary-button,
    .link-button {
        width: 100%;
    }

    .admin-action {
        margin-left: 0;
    }

    .secondary-action {
        width: 100%;
        margin-top: 14px;
    }

    .checkbox-group {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-group label,
    .question li label {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .checkbox-control,
    .question input[type='radio'] {
        flex: 0 0 auto;
        margin: 0;
    }

    .question ul {
        flex-direction: column;
        gap: 10px;
    }

    .report-card {
        text-align: center;
    }

    .report-card strong {
        font-size: 1.75rem;
    }

    table {
        min-width: 680px;
    }
}

@media (max-width: 380px) {
    .login-page,
    .signup-page,
    .admin-page {
        padding: 10px;
    }

    .login-panel,
    .form-section,
    .volunteer-card,
    .admin-section,
    .signup-header,
    .admin-header {
        padding: 14px;
    }

    .hero-logo {
        width: 150px;
    }

    .brand-mark {
        width: 68px;
        height: 68px;
    }

    h1 {
        font-size: 1.14rem;
    }

    input,
    select,
    textarea {
        padding: 11px;
    }
}
