/*
|--------------------------------------------------------------------------
| Account Auth Pages: Styles
|--------------------------------------------------------------------------
|
| Loaded by include/auth-header.php (log in, register, reset password).
| Alerts use the panel names (.up-alert), so AccountUI.showAlert() works.
|
*/

/* ===== Login / register ===== */
.au {
    --au-brand: #ff7a00;
    --au-brand-dark: #f05a00;
    --au-ink: #1d2130;
    --au-muted: #6b7280;
    --au-line: #e5e7eb;
    background: #f6f7fb;
    padding: 48px 16px 64px;
    color: var(--au-ink);
}
.au-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(17, 24, 39, .08);
    border: 1px solid #eceef3;
}

/* Brand side */
.au-brand {
    position: relative;
    overflow: hidden;
    padding: 48px 40px;
    color: #fff;
    background: linear-gradient(150deg, #ff9a2e 0%, var(--au-brand) 45%, var(--au-brand-dark) 100%);
    display: flex;
    flex-direction: column;
}
.au-brand::before,
.au-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.au-brand::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -120px;
}
.au-brand::after {
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: -90px;
}
.au-brand > * {
    position: relative;
    z-index: 1;
}
.au-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.au-brand h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #fff;
}
.au-brand p {
    opacity: .9;
    margin-bottom: 28px;
}
.au-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}
.au-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}
.au-features i {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.au-brand-foot {
    margin-top: 32px;
    font-size: 14px;
    opacity: .85;
}

/* Form side */
.au-form {
    padding: 48px 48px 40px;
}
.au-form h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--au-ink);
}
.au-sub {
    color: var(--au-muted);
    margin-bottom: 28px;
}
.au-field {
    margin-bottom: 18px;
}
.au-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.au-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #374151;
}
.au-input-wrap {
    position: relative;
}
.au-input-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}
.au-input {
    display: block;
    width: 100%;
    padding: 13px 44px 13px 42px;
    border: 1px solid var(--au-line);
    border-radius: 12px;
    background: #fbfbfd;
    color: var(--au-ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.au-input:focus {
    outline: 0;
    border-color: var(--au-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, .14);
}
.au-input:disabled {
    background: #f3f4f6;
    color: var(--au-muted);
}
.au-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #9ca3af;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
}
.au-toggle:hover {
    color: var(--au-brand);
}
.au-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--au-muted);
}
.au-link {
    color: var(--au-brand-dark);
    font-weight: 600;
    text-decoration: none;
}
.au-link:hover {
    color: var(--au-brand);
    text-decoration: underline;
}
.au-small-link {
    font-size: 13px;
}
.au-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5263;
    margin-bottom: 20px;
}
.au-check input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--au-brand);
    flex: 0 0 auto;
}
.au-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--au-brand), var(--au-brand-dark));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.au-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255, 122, 0, .3);
}
.au-btn-plain {
    border: 0;
    background: none;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}
.up-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid transparent;
}
.up-alert i {
    margin-top: 2px;
}
.up-alert-success { background: #ecfdf3; border-color: #c6f0d6; color: #166534; }
.up-alert-danger { background: #fef2f2; border-color: #fbd5d5; color: #b91c1c; }
.up-alert-warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.up-alert-info { background: #eff6ff; border-color: #cfe1ff; color: #1e40af; }
.au-switch {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef0f4;
    text-align: center;
    color: var(--au-muted);
    font-size: 15px;
}

@media (max-width: 860px) {
    .au {
        padding: 24px 12px 48px;
    }
    .au-card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 20px;
    }
    .au-brand {
        padding: 28px 24px;
    }
    .au-brand-icon,
    .au-features,
    .au-brand-foot {
        display: none;
    }
    .au-brand h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }
    .au-brand p {
        margin-bottom: 0;
    }
    .au-form {
        padding: 30px 22px 28px;
    }
    .au-form h1 {
        font-size: 24px;
    }
}

.au-turnstile {
    margin-bottom: 16px;
}
.au-turnstile:empty {
    margin-bottom: 0;
}

[hidden] {
    display: none !important;
}
.au-btn:disabled {
    opacity: .7;
    cursor: default;
}
.up-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: up-spin .7s linear infinite;
}
@keyframes up-spin {
    to { transform: rotate(360deg); }
}
