/* Auth pages (login / register) — shared, .au- prefix.
   Purple comes from the layout variables (--gg-purple / --gg-purple-dark). */

.au-page {
    background: #f6f3fb;
    padding-block: clamp(48px, 7vw, 72px);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #1b1530;
}

.au-shell { display: flex; justify-content: center; }

.au-card {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(27, 21, 48, .08);
    padding: clamp(24px, 4vw, 40px);
}
.au-card--login { max-width: 440px; }
.au-card--register { max-width: 640px; }

.au-head { text-align: center; margin-bottom: 22px; }
/* same site logo as the header, sized like it (48px tall) */
.au-logo img { height: 48px; width: auto; max-width: 100%; display: block; margin: 0 auto 14px; }
.au-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: #1b1530;
    margin: 0 0 6px;
}
.au-sub { margin: 0; color: #5f5a70; font-size: .9rem; }

.au-notice {
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}
.au-notice--error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.au-notice--ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }

.au-form { display: flex; flex-direction: column; gap: 16px; }

.au-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.au-field > label { font-size: 13px; font-weight: 600; color: #1b1530; }
.au-req { color: var(--gg-purple, #692c91); margin-left: 2px; }

.au-input {
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    border: 1px solid rgba(109, 40, 217, .25);
    border-radius: 8px;
    background: #fff;
    color: #1b1530;
    font-family: inherit;
    font-size: 14px;
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}
.au-input::placeholder { color: #8b86a0; }
.au-input:focus {
    outline: 0;
    border-color: var(--gg-purple, #692c91);
    box-shadow: 0 0 0 3px rgba(105, 44, 145, .15);
}
.au-input.is-invalid,
.au-input[aria-invalid="true"] { border-color: #dc2626; }

/* keep autofilled inputs white with dark text (no yellow/blue fill) */
.au-input:-webkit-autofill,
.au-input:-webkit-autofill:hover,
.au-input:-webkit-autofill:focus,
.au-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1b1530 !important;
    caret-color: #1b1530;
    transition: background-color 9999s ease-in-out 0s;
}

.au-input-wrap { position: relative; display: flex; }
.au-input-wrap .au-input { padding-right: 48px; }
.au-eye {
    position: absolute;
    top: 0;
    right: 4px;
    width: 40px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b6580;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.au-eye i { font-size: 16px; line-height: 1; }
.au-eye:hover { color: var(--gg-purple, #692c91); }
.au-eye.is-on { color: var(--gg-purple, #692c91); }
.au-eye:focus-visible,
.au-link:focus-visible,
.au-btn:focus-visible,
.au-google:focus-visible {
    outline: 2px solid var(--gg-purple, #692c91);
    outline-offset: 2px;
}

.au-error { margin: 0; font-size: 12px; font-weight: 500; color: #b91c1c; }

.au-row-end { display: flex; justify-content: flex-end; }
.au-link { color: var(--gg-purple, #692c91); font-size: 13px; font-weight: 600; text-decoration: none; }
.au-link:hover { color: var(--gg-purple-dark, #4f216e); text-decoration: underline; }

.au-btn {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--gg-purple, #692c91);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.au-btn:hover { background: var(--gg-purple-dark, #4f216e); color: #fff; }
.au-btn:disabled { opacity: .65; cursor: not-allowed; }

.au-alt { margin: 18px 0 0; text-align: center; font-size: 13px; color: #5f5a70; }

.au-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: #8b86a0;
    font-size: 12px;
}
.au-or::before,
.au-or::after { content: ""; flex: 1; height: 1px; background: #e8e4f0; }

/* the existing asset is the whole "Sign in with Google" badge, so size the badge
   itself to the primary button height instead of shrinking it inside a box */
.au-google {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
}
.au-google img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
}
.au-google:hover { opacity: .9; }

.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.au-field--full { grid-column: 1 / -1; }
.au-captcha { grid-column: 1 / -1; display: flex; justify-content: center; overflow: hidden; }
.au-captcha .text-danger,
.au-captcha .form-error { margin: 6px 0 0; font-size: 12px; font-weight: 500; color: #b91c1c; }

@media (max-width: 640px) {
    .au-grid { grid-template-columns: 1fr; }
    .au-card { padding: 24px 20px; }
}
@media (max-width: 420px) {
    .au-card { padding: 22px 16px; }
}
