.adc-auth-page {
    min-height: calc(100vh - 142px);
    padding: 48px 16px 64px;
    background: linear-gradient(145deg, #f5faf3 0%, #f8f8f8 55%, #fff7e1 100%);
    color: #243024;
}

.adc-auth-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.adc-auth-card {
    padding: 34px;
    border: 1px solid #e0e8dd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(35, 63, 31, .09);
}

.adc-auth-brand {
    margin-bottom: 26px;
}

.adc-auth-kicker {
    display: block;
    margin-bottom: 7px;
    color: #4e7e42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.adc-auth-card h1 {
    margin: 0;
    color: #274e23;
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.15;
}

.adc-auth-card h2 {
    margin: 0 0 12px;
    color: #274e23;
    font-size: 21px;
}

.adc-auth-card p {
    margin: 0 0 18px;
    line-height: 1.65;
}

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

.adc-auth-form--compact {
    gap: 8px;
}

.adc-auth-form label {
    margin-top: 7px;
    color: #253525;
    font-size: 14px;
    font-weight: 700;
}

.adc-auth-form input[type="text"],
.adc-auth-form input[type="email"],
.adc-auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #bdcbbb;
    border-radius: 9px;
    background: #fff;
    color: #1f271f;
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.adc-auth-field {
    position: relative;
    min-width: 0;
}

.adc-auth-field > input[type="text"],
.adc-auth-field > input[type="email"],
.adc-auth-field > input[type="password"] {
    display: block;
    min-height: 56px;
    padding-left: 48px;
    border-radius: 12px;
    font-size: 16px;
}

.adc-auth-field--password > input[type="text"],
.adc-auth-field--password > input[type="password"] {
    padding-right: 52px;
}

.adc-auth-field input::placeholder {
    color: #9ba2ad;
    opacity: 1;
}

.adc-auth-field__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ba2ad;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color .2s;
}

.adc-auth-field__icon .material-symbols-rounded {
    font-size: 21px;
}

.adc-auth-field:focus-within .adc-auth-field__icon {
    color: #a56f00;
}

.adc-auth-password-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8f98a7;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s, background-color .2s;
}

.adc-auth-password-toggle:hover {
    background: #fff3c6;
    color: #805a00;
}

.adc-auth-password-toggle:focus-visible {
    outline: 2px solid #805a00;
    outline-offset: 1px;
    background: #fff3c6;
    color: #805a00;
}

.adc-auth-password-toggle .material-symbols-rounded {
    font-size: 22px;
}

.adc-auth-form input:focus {
    border-color: #b77d00;
    outline: 0;
    background: #fffef9;
    box-shadow: 0 0 0 4px rgba(255, 196, 44, .30);
}

.adc-auth-form input:focus-visible {
    outline: 2px solid #805a00;
    outline-offset: 2px;
}

.adc-auth-check input {
    accent-color: #d99b00;
}

.adc-auth-form small {
    color: #607060;
    font-size: 12px;
    line-height: 1.45;
}

.adc-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 5px;
    font-weight: 500 !important;
    line-height: 1.5;
}

.adc-auth-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 18px;
}

.adc-auth-check a,
.adc-auth-links a {
    color: #336f2c;
    font-weight: 700;
    text-decoration: underline;
}

.adc-auth-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 11px 20px;
    border: 1px solid #397532;
    border-radius: 9px;
    background: #4b8a40;
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.adc-auth-button:hover,
.adc-auth-button:focus-visible {
    background: #397532;
    transform: translateY(-1px);
}

.adc-auth-button:disabled,
.adc-auth-button[aria-disabled="true"] {
    border-color: #d7d7d7;
    background: #f1f1f1;
    color: #777 !important;
    cursor: not-allowed;
    transform: none;
}

.adc-auth-button--secondary {
    border-color: #b7c6b4;
    background: #fff;
    color: #315d2c !important;
}

.adc-auth-button--secondary:hover,
.adc-auth-button--secondary:focus-visible {
    background: #eef5eb;
}

.adc-auth-button--google {
    width: 100%;
    gap: 10px;
    border-color: #747775;
    background: #fff;
    color: #1f1f1f !important;
}

.adc-auth-button--google:hover,
.adc-auth-button--google:focus-visible {
    border-color: #5f6368;
    background: #f8f9fa;
}

.adc-auth-button--google:disabled {
    border-color: #d7d7d7;
    background: #f1f1f1;
    color: #777 !important;
    cursor: not-allowed;
    transform: none;
}

.adc-auth-google-mark {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.adc-auth-turnstile {
    width: 100%;
    min-height: 1px;
    margin: 8px 0 2px;
}

.adc-auth-security-note {
    margin: 5px 0 0 !important;
    color: #5e6d5e;
    font-size: 13px;
    line-height: 1.5 !important;
}

.adc-auth-google-email {
    margin: 0 0 20px;
    padding: 14px;
    border-radius: 10px;
    background: #f2f6f0;
}

.adc-auth-google-email span,
.adc-auth-google-email strong {
    display: block;
}

.adc-auth-google-email span {
    margin-bottom: 5px;
    color: #667065;
    font-size: 12px;
}

.adc-auth-google-email strong {
    overflow-wrap: anywhere;
}

.adc-auth-button--danger {
    border-color: #9a2f2f;
    background: #b33c3c;
}

.adc-auth-button--danger:hover,
.adc-auth-button--danger:focus-visible {
    background: #922d2d;
}

.adc-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: #758075;
    font-size: 13px;
    text-transform: uppercase;
}

.adc-auth-divider::before,
.adc-auth-divider::after {
    height: 1px;
    background: #e1e6e0;
    content: "";
    flex: 1;
}

.adc-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 20px;
    font-size: 14px;
}

.adc-auth-visitor,
.adc-auth-subsection,
.adc-auth-danger {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e7e1;
}

.adc-auth-visitor {
    display: grid;
    justify-items: center;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #efd486;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffdf6, #fff7da);
    box-shadow: 0 10px 26px rgba(128, 90, 0, .07);
    text-align: center;
}

.adc-auth-visitor__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 12px;
    text-align: left;
}

.adc-auth-visitor__heading > div,
.adc-auth-visitor__heading strong,
.adc-auth-visitor__heading span {
    display: block;
}

.adc-auth-visitor__heading strong {
    color: #2a2415;
    font-size: 16px;
}

.adc-auth-visitor__heading > div > span {
    margin-top: 2px;
    color: #73643e;
    font-size: 12px;
}

.adc-auth-visitor__icon {
    display: inline-flex !important;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #ffd75c;
    color: #513b00;
}

.adc-auth-visitor__icon .material-symbols-rounded {
    font-size: 22px;
}

.adc-auth-visitor > p {
    max-width: 590px;
    margin-bottom: 14px;
    color: #544b35;
}

.adc-auth-button--visitor {
    gap: 8px;
    border-color: #b98400;
    background: #fff;
    color: #3b2c05 !important;
}

.adc-auth-button--visitor:hover,
.adc-auth-button--visitor:focus-visible {
    border-color: #8b6200;
    background: #ffecab;
}

.adc-auth-button--visitor .material-symbols-rounded,
.adc-auth-visitor-link .material-symbols-rounded {
    font-size: 19px;
}

.adc-auth-links--registration {
    align-items: center;
}

.adc-auth-visitor-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid #ddb33f;
    border-radius: 9px;
    background: #fff8df;
    color: #4e3900 !important;
    text-decoration: none !important;
}

.adc-auth-visitor-link:hover,
.adc-auth-visitor-link:focus-visible {
    border-color: #a87900;
    background: #ffedb2;
}

.adc-auth-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    line-height: 1.5;
}

.adc-auth-alert--success {
    border-color: #a9d2a1;
    background: #eff9ec;
    color: #285623;
}

.adc-auth-alert--error {
    border-color: #efb1ad;
    background: #fff1f0;
    color: #7f2420;
}

.adc-auth-alert--info {
    border-color: #b9cee4;
    background: #f0f7ff;
    color: #284f75;
}

.adc-auth-account-summary {
    margin: 0 0 26px;
    padding: 10px 30px;
    border: 1px solid #dfe5e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 42, 30, .06);
}

.adc-auth-account-summary__row {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: center;
    min-width: 0;
    padding: 17px 0;
    border-bottom: 1px solid #e7ebe9;
}

.adc-auth-account-summary__row:last-child {
    border-bottom: 0;
}

.adc-auth-account-summary dt,
.adc-auth-account-summary dd {
    margin: 0;
}

.adc-auth-account-summary dt {
    color: #171c19;
    font-weight: 800;
}

.adc-auth-account-summary dd {
    color: #222a25;
    text-align: right;
    overflow-wrap: anywhere;
}

.adc-auth-account-status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #e3aa12;
    border-radius: 999px;
    background: #fff5c7;
    color: #5d4300;
    font-size: 13px;
    font-weight: 800;
}

.adc-auth-account-intro {
    max-width: 700px;
    margin: 10px 0 0 !important;
    color: #626c66;
    font-size: 17px;
}

.adc-auth-account-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.adc-auth-account-settings > .adc-auth-subsection {
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid #e1e6e3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 42, 30, .05);
}

.adc-auth-account-settings > .adc-auth-subsection--security,
.adc-auth-account-settings > .adc-auth-subsection:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.adc-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.adc-auth-actions form {
    margin: 0;
}

.adc-auth-danger {
    color: #6f2525;
}

.adc-auth-danger summary {
    font-weight: 700;
    cursor: pointer;
}

.adc-auth-danger[open] summary {
    margin-bottom: 14px;
}

@media (max-width: 680px) {
    .adc-auth-page {
        padding: 24px 10px 42px;
    }

    .adc-auth-card {
        padding: 23px 18px;
        border-radius: 13px;
    }

    .adc-auth-account-summary {
        padding: 8px 18px;
    }

    .adc-auth-account-summary__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .adc-auth-account-summary dd {
        text-align: left;
    }

    .adc-auth-account-settings {
        grid-template-columns: 1fr;
    }

    .adc-auth-account-settings > .adc-auth-subsection,
    .adc-auth-account-settings > .adc-auth-subsection--security,
    .adc-auth-account-settings > .adc-auth-subsection:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .adc-auth-actions,
    .adc-auth-actions form,
    .adc-auth-actions .adc-auth-button {
        width: 100%;
    }

    .adc-auth-visitor {
        padding: 18px 14px;
    }

    .adc-auth-button--visitor,
    .adc-auth-visitor-link {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .adc-auth-page {
        padding-right: 4px;
        padding-left: 4px;
    }

    .adc-auth-card {
        padding-right: 5px;
        padding-left: 5px;
    }
}
