@font-face {
    font-family: "Google Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/google-sans-medium.ttf") format("truetype");
}
:root {
    color-scheme: dark;
    font-family: Helvetica, Arial, sans-serif;
    background: #111;
    color: #fff;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-width: 280px;
    min-height: 100dvh;
    background: #111;
}
button,
input {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid #a1f47a;
    outline-offset: 4px;
}
button:disabled {
    cursor: wait;
    opacity: 0.65;
}
[hidden] {
    display: none !important;
}
.auth-shell {
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 28px;
    gap: 24px;
}
.auth-brand a {
    display: block;
}
.auth-brand img {
    display: block;
    width: 136px;
    height: auto;
}
.auth-card {
    width: 100%;
    max-width: 448px;
    padding: 8px 32px 24px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
}
.card-heading {
    text-align: center;
    margin: 0 0 28px;
}
.card-heading h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
    font-weight: 700;
    margin: 0 0 10px;
}
.card-heading p {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
    margin: 0;
}
.provider-buttons {
    display: grid;
    gap: 12px;
}
.provider-buttons form {
    margin: 0;
}
.provider-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #777;
    border-radius: 999px;
    background: #131314;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
}
.provider-google {
    font-family: "Google Sans", sans-serif;
}
.provider-button:hover {
    background: #232323;
    border-color: #fff;
}
.provider-button img {
    position: absolute;
    left: 24px;
    display: block;
    object-fit: contain;
    flex: none;
}
.provider-apple {
    border-color: #777;
}
.provider-apple img {
    filter: none;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #999;
    font-size: 12px;
    line-height: 20px;
    margin: 24px 0;
}
.auth-divider:before,
.auth-divider:after {
    content: "";
    height: 1px;
    flex: 1;
    background: #333;
}
.auth-divider span {
    white-space: nowrap;
}
.credentials-form {
    display: grid;
    gap: 18px;
}
.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 20px;
}
.field-heading label {
    font-weight: 550;
}
.field-heading a {
    font-size: 12px;
    color: #bbb;
}
.input-wrap {
    position: relative;
}
.input-wrap input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #555;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    outline: none;
}
.input-wrap input[type="password"],
.input-wrap input[autocomplete="new-password"],
.input-wrap input[autocomplete="current-password"] {
    padding-right: 68px;
}
.input-wrap input::placeholder {
    color: #999;
}
.input-wrap input:focus {
    border-color: #a1f47a;
    box-shadow: 0 0 0 3px #a1f47a14;
}
.input-wrap input[aria-invalid="true"] {
    border-color: #e8a59a;
}
.password-toggle {
    position: absolute;
    right: 4px;
    top: 4px;
    min-width: 56px;
    min-height: 40px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    color: #bbb;
    font-size: 12px;
    font-weight: 500;
}
.password-toggle:hover {
    color: #fff;
    background: #ffffff08;
}
.field-hint,
.field-error {
    font-size: 12px;
    line-height: 1.5;
    margin: 7px 0 0;
}
.field-hint {
    color: #aaa;
}
.field-error {
    color: #f1b7ac;
}
.primary-button,
.secondary-button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none !important;
}
.primary-button {
    background: #a1f47a;
    color: #050505;
    border: 1px solid #a1f47a;
}
.primary-button:hover {
    background: #b4ff91;
}
.credentials-form > .primary-button {
    margin-top: 4px;
}
.secondary-button {
    background: transparent;
    color: #fff;
    border: 1px solid #777;
}
.secondary-button:hover {
    background: #ffffff08;
}
.auth-switch {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    margin: 24px 0 0;
}
.auth-switch a {
    color: #fff;
    font-weight: 600;
}
.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 12px;
    color: #999;
    line-height: 20px;
}
.back-link {
    display: inline-flex;
    gap: 8px;
    font-size: 12px;
    color: #bbb;
    margin-bottom: 26px;
}
.notice {
    padding: 14px 16px;
    margin: 0 0 22px;
    border: 1px solid #546747;
    border-radius: 10px;
    background: #a1f47a09;
    color: #cfddc5;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.notice-error {
    background: #f1b7ac08;
    border-color: #81574f;
    color: #f1b7ac;
}
.notice:empty {
    display: none;
}
.recovery-actions {
    display: grid;
    gap: 12px;
}
@media (max-width: 480px) {
    .auth-shell {
        padding: 32px 24px 24px;
        gap: 22px;
        justify-content: flex-start;
    }
    .auth-card {
        padding: 4px 0 12px;
        border-radius: 18px;
    }
    .card-heading h1 {
        font-size: 28px;
    }
    .card-heading {
        margin-bottom: 24px;
    }
}
@media (prefers-reduced-motion: no-preference) {
    button,
    a,
    input {
        transition:
            background-color 0.15s,
            border-color 0.15s,
            box-shadow 0.15s;
    }
}

#reset-message:not(:empty) {
    margin-top: 22px;
}

@media (max-width: 480px) {
    .auth-brand img {
        width: 112px;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
