.page-home {
    display: grid;
    gap: 1.5rem;
}

.page-home .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(330px, 0.88fr);
    gap: 1rem;
    align-items: stretch;
    margin-top: 0.8rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 28%),
        linear-gradient(135deg, #eff7ff, #e6f1ff 48%, #f7fbff);
    border: 1px solid var(--border);
    padding: 1.45rem;
    box-shadow: 0 16px 36px rgba(9, 38, 71, 0.08);
}

.page-home .hero-copy,
.page-home .hero-auth-shell,
.page-home .hero-auth-card {
    min-width: 0;
}

.page-home .hero-copy {
    display: grid;
    align-content: start;
    gap: 1.15rem;
    padding: 0.4rem 0.65rem 0.4rem 0.1rem;
}

.page-home .hero-intro {
    display: grid;
    gap: 0.9rem;
    max-width: 44rem;
}

.page-home .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-home .hero-eyebrow,
.page-home .section-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-home .hero h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(2.6rem, 4.8vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-home .hero-lead {
    margin: 0;
    max-width: 47ch;
    color: var(--subtext);
    font-size: 1rem;
    line-height: 1.7;
}

.page-home .hero-welcome-card {
    display: grid;
    gap: 0.7rem;
    max-width: 34rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid #cfe4d5;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 30%),
        linear-gradient(135deg, #f4fff7, #ffffff 60%);
    box-shadow: 0 14px 30px rgba(31, 92, 53, 0.1);
}

.page-home .hero-welcome-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    line-height: 1.2;
    color: #183526;
}

.page-home .hero-welcome-text {
    margin: 0;
    color: #365140;
    line-height: 1.75;
    font-size: 0.98rem;
}

.page-home .hero-entry-card {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(240px, 0.9fr);
    gap: 0;
    border: 1px solid #dce6f3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(18, 43, 73, 0.06);
}

.page-home .hero-entry-login,
.page-home .hero-entry-register {
    padding: 1.05rem 1.15rem;
}

.page-home .hero-entry-login {
    display: grid;
    gap: 0.72rem;
}

.page-home .hero-entry-register {
    display: grid;
    align-content: center;
    gap: 0.6rem;
    border-left: 1px dashed #c9d8ea;
    background: linear-gradient(180deg, #fbfdff, #f4f9ff);
}

.page-home .hero-entry-register-kicker {
    margin: 0;
    color: #3e648f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page-home .hero-entry-title {
    margin: 0;
    font-size: 0.98rem;
    color: #27405f;
}

.page-home .hero-login-form {
    display: grid;
    gap: 0.62rem;
}

.page-home .hero-login-row {
    display: grid;
    gap: 0.34rem;
}

.page-home .hero-login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-home .hero-login-label {
    color: #516683;
    font-size: 0.84rem;
    font-weight: 700;
}

.page-home .hero-login-row input {
    width: 100%;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    font-size: 0.98rem;
    background: #fff;
}

.page-home .hero-forgot-link {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.page-home .hero-forgot-link:hover {
    text-decoration: underline;
}

.page-home .btn-hero-login {
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, #ff7b14, #ff6a00);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(255, 106, 0, 0.22);
}

.page-home .btn-hero-login:hover {
    background: linear-gradient(180deg, #ff8a2e, #f76800);
}

.page-home .hero-entry-register-copy {
    margin: 0;
    color: #27405f;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.page-home .hero-entry-register-note {
    margin: 0;
    color: var(--subtext);
    font-size: 0.9rem;
    line-height: 1.7;
}

.page-home .btn-hero-register {
    justify-content: center;
    border: 1px solid #5f8fc8;
    background: linear-gradient(180deg, #79a9df, #5f8fc8);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(50, 95, 150, 0.16);
}

.page-home .btn-hero-register:hover {
    background: linear-gradient(180deg, #87b5e7, #6b9ad2);
    border-color: #5886be;
}

.page-home .hero-auth-kicker {
    margin: 0;
    color: #4f6d50;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page-home .hero-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.page-home .hero-actions .btn {
    min-width: 180px;
}

.page-home .hero-quickstart {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    max-width: 34rem;
}

.page-home .hero-quickstart-card {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(173, 198, 228, 0.84);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.94), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 249, 255, 0.94));
    box-shadow: 0 12px 24px rgba(18, 43, 73, 0.06);
}

.page-home .hero-quickstart-guide {
    border-color: rgba(176, 207, 182, 0.9);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 34%),
        linear-gradient(180deg, rgba(245, 251, 246, 0.96), rgba(255, 255, 255, 0.96));
}

.page-home .hero-quickstart-kicker {
    margin: 0;
    color: #4d739f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.page-home .hero-quickstart-title {
    margin: 0;
    color: #163454;
    font-size: 1.02rem;
    line-height: 1.4;
}

.page-home .hero-quickstart-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #4e6480;
    line-height: 1.72;
}

.page-home .hero-quickstart-steps li + li {
    margin-top: 0.45rem;
}

.page-home .hero-auth-shell {
    display: grid;
    align-items: start;
    justify-items: center;
    position: relative;
    padding: 1.2rem 0 0.8rem;
}

.page-home .hero-auth-shell::before,
.page-home .hero-auth-shell::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(191, 211, 237, 0), rgba(191, 211, 237, 0.95), rgba(191, 211, 237, 0));
}

.page-home .hero-auth-shell::before {
    top: 1.15rem;
}

.page-home .hero-auth-shell::after {
    bottom: 1.15rem;
}

.page-home .password-card,
.page-home .event-card,
.page-home .auth-card,
.page-home .benefit-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(18, 43, 73, 0.06);
}

.page-home .hero-auth-card {
    display: grid;
    align-content: start;
    gap: 0.8rem;
    background-color: #eef7f0;
    background-image: -webkit-linear-gradient(top, rgba(241, 249, 242, 0.98), rgba(255, 255, 255, 0.95));
    background-image: linear-gradient(180deg, rgba(241, 249, 242, 0.98), rgba(255, 255, 255, 0.95));
    border-color: #b5ceb8;
    width: min(100%, 378px);
    padding: 1rem 1rem 1.1rem;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 12px 24px rgba(62, 96, 67, 0.08);
}

.page-home .hero-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 4px;
    border-radius: 999px;
    background: #99bd9f;
}

.page-home .hero-auth-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.page-home .hero-auth-lead {
    margin: 0;
    color: var(--subtext);
    line-height: 1.55;
    font-size: 0.92rem;
}

.page-home .hero-auth-action-note {
    margin: -0.1rem 0 0;
    color: #476149;
    font-size: 0.82rem;
    line-height: 1.55;
}

.page-home .home-primary-action {
    width: min(100%, 236px);
}

.page-home .btn-hero-verify {
    justify-content: center;
    border: 1px solid #8db394;
    background: linear-gradient(180deg, #edf7ef, #deefe2);
    color: #2e5e37;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(74, 116, 82, 0.12);
}

.page-home .btn-hero-verify:hover {
    background: linear-gradient(180deg, #f4fbf5, #e4f3e7);
    border-color: #7ca884;
}

.page-home .hero-auth-form-fields {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
}

.page-home .hero-auth-field {
    margin-bottom: 0;
    width: min(100%, 236px);
}

.page-home .hero-auth-field input {
    padding: 0.72rem 0.85rem;
    text-align: center;
}

.page-home .form-row {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.page-home label {
    font-weight: 600;
}

.page-home input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
}

.page-home input:focus {
    border-color: #7eb3e5;
    box-shadow: 0 0 0 3px rgba(0, 87, 165, 0.15);
    outline: none;
}

.page-home .remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--subtext);
    font-size: 0.92rem;
    margin: 0.15rem 0 0.2rem;
}

.page-home .remember-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.page-home .home-event-password-note {
    margin: 0;
    font-size: 0.88rem;
}

.page-home .home-message-stack {
    display: grid;
    gap: 0.7rem;
}

.page-home .home-message-stack .message {
    margin-top: 0;
}

.page-home .section {
    display: grid;
    gap: 0.9rem;
}

.page-home .section-highlight {
    padding: 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.8), rgba(255, 255, 255, 0));
    border: 1px solid rgba(159, 201, 243, 0.58);
}

.page-home .section-focus {
    border-radius: 18px;
    background: linear-gradient(180deg, #eef7ff, #fbfdff);
    box-shadow: 0 0 0 2px #9fc9f3 inset, 0 10px 24px rgba(17, 53, 93, 0.09);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.page-home .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.page-home .section-heading h2,
.page-home .section-heading .section-title {
    margin: 0;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-home .section-intro {
    margin: 0.4rem 0 0;
    color: var(--subtext);
    line-height: 1.65;
}

.page-home .event-grid,
.page-home .benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.page-home .authenticated-event-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
    justify-content: start;
}

.page-home .event-card {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.page-home .event-card-action {
    margin-top: auto;
    justify-self: stretch;
}

.page-home .event-card h3,
.page-home .benefit-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.page-home .event-card p,
.page-home .benefit-card p {
    margin: 0;
    color: var(--subtext);
    line-height: 1.65;
}

.page-home .event-meta {
    font-size: 0.9rem;
    color: var(--subtext);
    margin: 0;
}

.page-home .empty {
    padding: 1rem;
    color: var(--subtext);
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fff;
}

.page-home .home-inline-result {
    display: none;
    margin-bottom: 0;
}

@media (max-width: 960px) {
    .page-home .hero {
        grid-template-columns: 1fr;
    }

    .page-home .hero h1 {
        max-width: none;
    }

    .page-home .hero-copy {
        padding-right: 0;
    }

    .page-home .hero-intro {
        max-width: none;
    }

    .page-home .hero-welcome-card {
        max-width: none;
    }

    .page-home .hero-auth-shell {
        padding: 0;
    }

    .page-home .hero-auth-shell::before,
    .page-home .hero-auth-shell::after {
        display: none;
    }

    .page-home .hero-entry-card {
        grid-template-columns: 1fr;
    }

    .page-home .hero-entry-register {
        border-left: 0;
        border-top: 1px dashed #c9d8ea;
    }
}

@media (max-width: 700px) {
    .page-home .hero {
        padding: 1.05rem 1rem;
        gap: 0.85rem;
    }

    .page-home .hero-actions,
    .page-home .hero-entry-card {
        width: 100%;
    }

    .page-home .hero-auth-form-fields {
        grid-template-columns: 1fr;
    }

    .page-home .hero-auth-field,
    .page-home .home-primary-action {
        width: 100%;
    }

    .page-home .hero-actions .btn,
    .page-home .hero-entry-register .btn,
    .page-home .btn-hero-login {
        width: 100%;
    }

    .page-home .section-highlight {
        padding: 0.9rem;
    }

    .page-home .authenticated-event-grid {
        grid-template-columns: 1fr;
    }

    .page-home .event-card-action {
        width: 100%;
    }
}
