/* Auth pages (_LayoutLogin): only what Bootstrap 5 doesn't cover. Brand colours mirror variables.scss */

.auth-page {
    --auth-primary: #fb8703;
    --auth-primary-rgb: 251, 135, 3;
    --auth-secondary: #203c63;
    min-height: 100vh;
    background:
        radial-gradient(60rem 40rem at 100% 0%, rgba(var(--auth-primary-rgb), .10), transparent 60%),
        radial-gradient(50rem 35rem at 0% 100%, rgba(32, 60, 99, .08), transparent 60%),
        #fbfaf8;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .12);
}

.auth-title {
    color: var(--auth-secondary);
    letter-spacing: -.01em;
}

.auth-page a:not(.btn) {
    color: var(--auth-primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-page a:not(.btn):hover {
    text-decoration: underline;
}

/* site.css sets a global label margin and thin input text, which break floating labels */
.auth-page label {
    margin: 0;
}

.auth-page .form-control,
.auth-page .form-select {
    font-weight: 400;
}

/* Brand focus ring instead of Bootstrap blue */
.auth-page .form-control:focus,
.auth-page .form-select:focus,
.auth-page .form-check-input:focus {
    border-color: rgba(var(--auth-primary-rgb), .6);
    box-shadow: 0 0 0 .25rem rgba(var(--auth-primary-rgb), .15);
}

.auth-page .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page .btn {
    border-radius: .75rem;
}

.auth-page .phone-code {
    flex: 0 0 7.5rem;
}

.auth-page .btn-lg {
    padding-top: .8rem;
    padding-bottom: .8rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.btn-social {
    background: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    color: #202124;
}

/* "or" divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #6c757d;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e5e7eb;
}

/* Validation summary as an alert, hidden when there are no errors */
.auth-page .validation-summary-valid {
    display: none;
}

.auth-page .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Password field: show/hide toggle sits inside the floating input */
.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    z-index: 5;
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: .5rem;
    line-height: 1;
}

.password-toggle:hover {
    color: #212529;
}

.req-item {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    background: #f1f3f5;
    color: #6c757d;
    transition: background-color .2s ease, color .2s ease;
}

.req-item::before {
    content: "\2022";
}

.req-item.met {
    background: rgba(0, 166, 90, .12);
    color: #00864a;
}

.req-item.met::before {
    content: "\2713";
}

/* OTP digit boxes */
.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .5rem;
}

.otp-inputs input {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
}

.auth-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
}

.auth-icon-primary {
    background: rgba(var(--auth-primary-rgb), .12);
    color: var(--auth-primary);
}

.auth-icon-success {
    background: rgba(0, 166, 90, .12);
    color: #00a65a;
}
