@import url("/assets/user/css/onesh-core.css");

.onesh-auth-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.auth-shell {
    display: grid;
    width: min(100% - 32px, 520px);
    flex: 1;
    align-content: center;
    margin: 0 auto;
    padding: 42px 0 72px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 0 0 12px 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-back:hover {
    color: var(--accent);
}

.auth-card {
    width: 100%;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card__brand {
    margin-bottom: 26px;
    text-align: center;
}

.auth-card__brand h1 {
    margin: 10px 0 7px;
    font-size: 30px;
    letter-spacing: 0;
}

.auth-card__brand p,
.auth-subtitle {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-field label i {
    width: 16px;
    margin-right: 3px;
    color: var(--accent);
    text-align: center;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-options a,
.auth-switch a,
.text-link {
    color: var(--accent);
}

.auth-options a:hover,
.auth-switch a:hover,
.text-link:hover {
    color: var(--accent-strong);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.auth-check input,
.form-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-submit {
    width: 100%;
    min-height: 48px;
}

.auth-divider,
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--text-soft);
    font-size: 11px;
}

.auth-divider::before,
.auth-divider::after,
.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
}

.auth-captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: end;
    gap: 10px;
}

.auth-captcha .image-code {
    width: 118px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

/* Re-skin the existing register and password recovery templates. */
.auth-wrapper {
    display: grid;
    width: min(100% - 32px, 520px);
    flex: 1;
    align-content: center;
    margin: 0 auto;
    padding: 42px 0 72px;
    background: transparent;
}

.auth-wrapper .auth-card {
    max-width: none;
}

.brand-header,
.brand-logo {
    margin-bottom: 14px;
    text-align: center;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: none;
}

.form-floating {
    margin-bottom: 16px !important;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    height: 48px;
    padding: 14px 12px 4px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-soft);
}

.form-floating > label {
    padding: 13px 12px;
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent);
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-outline-primary {
    min-height: 44px;
    border-color: var(--border-strong);
    color: var(--text-muted);
}

@media (max-width: 560px) {
    .auth-card {
        padding: 23px 18px;
        border-radius: 16px;
    }

    .auth-shell,
    .auth-wrapper {
        width: min(100% - 24px, 520px);
        padding-top: 22px;
    }
}
