/* ==========================================================================
   UCE Auth — Login / Register / Password / Verify
   ========================================================================== */

/* Layout ------------------------------------------------------------------- */
.uce-auth-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 80vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    justify-content: center;
}

.uce-auth-wrap--narrow {
    max-width: 520px;
    align-items: flex-start;
    padding-top: 60px;
}

.uce-auth-wrap--register {
    max-width: 680px;
    align-items: flex-start;
}

/* Card --------------------------------------------------------------------- */
.uce-auth-card {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(13, 27, 42, 0.1);
    padding: 48px 44px;
    box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
    max-width: 520px;
}

.uce-auth-card--wide {
    max-width: 100%;
}

.uce-auth-card--centered {
    text-align: center;
}

/* Header ------------------------------------------------------------------- */
.uce-auth-card-header {
    margin-bottom: 36px;
}

.uce-auth-logo {
    margin-bottom: 20px;
}

.uce-auth-logo img {
    max-height: 52px;
    width: auto;
}

.uce-auth-site-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--uce-gold, #b8922d);
    letter-spacing: 0.02em;
}

.uce-auth-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--uce-text-primary, #0d1b2a) !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}

.uce-auth-subtitle {
    font-size: 15px;
    color: var(--uce-text-muted, #4a5568);
    margin: 0;
}

.uce-auth-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(107, 30, 63, 0.12);
    color: var(--uce-gold, #b8922d);
    margin: 0 auto 20px;
}

.uce-auth-icon-header--success {
    background: rgba(25, 135, 84, 0.15);
    color: #2ecc71;
}

.uce-auth-icon-header--error {
    background: rgba(220, 53, 69, 0.15);
    color: #e74c3c;
}

.uce-auth-icon-header--warning {
    background: rgba(255, 193, 7, 0.15);
    color: #f39c12;
}

/* Notices ------------------------------------------------------------------ */
.uce-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    background: rgba(107, 30, 63, 0.1);
    border: 1px solid rgba(107, 30, 63, 0.25);
    color: #b8922d;
}

.uce-auth-notice svg { flex-shrink: 0; margin-top: 1px; }

.uce-auth-notice--success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #5eee9a;
}

.uce-auth-notice--error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #f08080;
}

/* Form --------------------------------------------------------------------- */
.uce-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.uce-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.uce-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uce-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--uce-text-muted, #4a5568);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 3px;
}

.uce-form-label .required {
    color: #e74c3c;
    margin-left: 1px;
}

.uce-form-label-link {
    font-weight: 400;
    color: var(--uce-gold, #b8922d);
    text-decoration: none;
    font-size: 12px;
}

.uce-form-label-link:hover { text-decoration: underline; }

.uce-input-wrap {
    position: relative;
    display: block;
}

.uce-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(calc(-50% - 5px));
    color: var(--uce-text-dim, #718096);
    pointer-events: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    z-index: 1;
}

.uce-form-input {
    width: 100% !important;
    padding: 10px 14px !important;
    background: #ffffff;
    border: 1.5px solid #9aabb8 !important;
    border-radius: 10px;
    color: var(--uce-text-primary, #0d1b2a);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    line-height: 1.4;
    display: block;
}

.uce-input-icon + .uce-form-input { padding-left: 40px !important; }
.uce-form-input--has-toggle,
.uce-input-wrap:has(.uce-password-toggle) .uce-form-input { padding-right: 58px !important; }

.uce-form-input::placeholder { color: var(--uce-text-dim, #718096); }

.uce-form-input:focus {
    border-color: var(--uce-gold, #b8922d) !important;
    box-shadow: 0 0 0 3px rgba(107, 30, 63, 0.12);
    background: #fff;
}

.uce-form-input.has-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

button.uce-password-toggle,
.uce-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 999px !important;
    color: #718096 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s, background 0.2s !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

button.uce-password-toggle svg,
.uce-password-toggle svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
    stroke: currentColor !important;
    color: inherit !important;
    fill: none !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

button.uce-password-toggle svg *,
.uce-password-toggle svg * {
    stroke: currentColor !important;
    fill: none !important;
}

button.uce-password-toggle::before,
button.uce-password-toggle::after,
.uce-password-toggle::before,
.uce-password-toggle::after {
    content: none !important;
    display: none !important;
}

button.uce-password-toggle:hover,
.uce-password-toggle:hover { background: rgba(13,27,42,0.06) !important; color: #4a5568 !important; }

body .uce-auth-wrap .uce-input-wrap > button.uce-password-toggle,
body .uce-auth-card .uce-input-wrap > button.uce-password-toggle,
body .uce-page-wrap .uce-auth-card .uce-input-wrap > button.uce-password-toggle {
    all: unset !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #718096 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 3 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

body .uce-auth-wrap .uce-input-wrap > button.uce-password-toggle:hover,
body .uce-auth-card .uce-input-wrap > button.uce-password-toggle:hover,
body .uce-page-wrap .uce-auth-card .uce-input-wrap > button.uce-password-toggle:hover {
    background: rgba(13,27,42,0.06) !important;
    color: #4a5568 !important;
}

body .uce-auth-wrap .uce-input-wrap > button.uce-password-toggle svg,
body .uce-auth-card .uce-input-wrap > button.uce-password-toggle svg,
body .uce-page-wrap .uce-auth-card .uce-input-wrap > button.uce-password-toggle svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    stroke: currentColor !important;
    fill: none !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

body .uce-auth-wrap .uce-input-wrap > button.uce-password-toggle::before,
body .uce-auth-wrap .uce-input-wrap > button.uce-password-toggle::after,
body .uce-auth-card .uce-input-wrap > button.uce-password-toggle::before,
body .uce-auth-card .uce-input-wrap > button.uce-password-toggle::after,
body .uce-page-wrap .uce-auth-card .uce-input-wrap > button.uce-password-toggle::before,
body .uce-page-wrap .uce-auth-card .uce-input-wrap > button.uce-password-toggle::after {
    content: none !important;
    display: none !important;
}

/* Password strength -------------------------------------------------------- */
.uce-password-strength {
    height: 4px;
    border-radius: 2px;
    background: rgba(13,27,42,0.06);
    margin-top: 6px;
    overflow: hidden;
    transition: background 0.3s;
}

.uce-password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.uce-strength-weak   .uce-password-strength-bar { width: 25%; background: #e74c3c; }
.uce-strength-fair   .uce-password-strength-bar { width: 50%; background: #f39c12; }
.uce-strength-good   .uce-password-strength-bar { width: 75%; background: #2ecc71; }
.uce-strength-strong .uce-password-strength-bar { width: 100%; background: #00d4aa; }

/* Checkboxes --------------------------------------------------------------- */
.uce-form-check { margin: -4px 0; }

.uce-form-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uce-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568 !important;
    line-height: 1.5;
}

.uce-check-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: none !important;
}

.uce-check-box {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
    border: 2px solid #8a9ab0 !important;
    background: #ffffff !important;
    transition: border-color 0.2s, background 0.2s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.uce-check-input:checked + .uce-check-box {
    background: #0d1b2a !important;
    border-color: #0d1b2a !important;
}

.uce-check-input:checked + .uce-check-box::after {
    content: '' !important;
    display: block !important;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    transform: translateY(-1px) rotate(-45deg);
}

/* Account type grid -------------------------------------------------------- */
.uce-account-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.uce-account-type-card {
    cursor: pointer;
    display: block;
}

.uce-account-type-card input[type="radio"] { display: none; }

.uce-type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 10px;
    border: 2px solid #d1d9e0;
    background: #fafafa;
    color: var(--uce-text-muted, #4a5568);
    transition: all 0.2s;
    text-align: center;
}

.uce-type-card-inner:hover {
    border-color: rgba(107, 30, 63, 0.3);
    background: rgba(107, 30, 63, 0.05);
    color: var(--uce-text-primary, #0d1b2a);
}

.uce-account-type-card input:checked + .uce-type-card-inner {
    border-color: var(--uce-gold, #b8922d);
    background: rgba(107, 30, 63, 0.08);
    color: var(--uce-gold, #b8922d);
    box-shadow: 0 0 0 3px rgba(107, 30, 63, 0.1);
}

.uce-type-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.uce-type-card-label {
    font-size: 13px;
    font-weight: 600;
}

/* Role-specific fields ----------------------------------------------------- */
.uce-role-fields {
    background: rgba(107, 30, 63, 0.04);
    border: 1px solid rgba(107, 30, 63, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-top: 4px;
    animation: uce-role-in 0.2s ease;
}

@keyframes uce-role-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.uce-role-fields-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #b8922d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 30, 63, 0.1);
}

/* Buttons ------------------------------------------------------------------ */
.uce-btn-full { width: 100%; justify-content: center; }

.uce-btn-lg {
    padding: 13px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Auth footer / links ------------------------------------------------------ */
.uce-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #718096 !important;
}

.uce-auth-footer p { margin: 0; color: #718096 !important; }

.uce-auth-link {
    color: #b8922d !important;
    font-weight: 600;
    text-decoration: none !important;
}

.uce-auth-link:hover { text-decoration: underline !important; color: #d4a932 !important; }

.uce-check-label a {
    color: var(--uce-gold, #b8922d);
    font-weight: 600;
    text-decoration: none;
    display: inline;
}

.uce-check-label a:hover { text-decoration: underline; }

.uce-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--uce-text-muted, #4a5568);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.uce-auth-back-link:hover { color: var(--uce-text-primary, #0d1b2a); }

.uce-auth-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--uce-gold, #b8922d);
    font-weight: 600;
    font-size: inherit;
}

.uce-auth-link-btn:hover { text-decoration: underline; }

.uce-auth-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

/* Right panel (branding) --------------------------------------------------- */
.uce-auth-bg-panel {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #f7f8fa;
    border-radius: 0 16px 16px 0;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-left: 1px solid rgba(13, 27, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.uce-auth-bg-panel::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 30, 63, 0.05) 0%, transparent 70%);
}

.uce-auth-bg-content { position: relative; z-index: 1; }

.uce-auth-bg-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 100px;
    border: 1px solid rgba(107, 30, 63, 0.35);
    background: rgba(107, 30, 63, 0.06);
    color: #b8922d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.uce-auth-bg-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0 0 14px;
    line-height: 1.3;
}

.uce-auth-bg-content p {
    color: #718096;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.uce-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uce-auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4a5568;
}

.uce-auth-features li svg {
    color: #2ecc71;
    flex-shrink: 0;
}

/* Already logged in notice */
.uce-already-logged-in {
    text-align: center;
    padding: 40px;
    color: var(--uce-text-muted, #4a5568);
}

/* Spin animation for loading state */
@keyframes uce-spin {
    to { transform: rotate(360deg); }
}

.uce-spin {
    animation: uce-spin 0.8s linear infinite;
}

/* Social / Passkey buttons row --------------------------------------------- */
.uce-auth-social-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.uce-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 8px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: rgba(13, 27, 42, 0.04);
    color: var(--uce-text-primary, #0d1b2a);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.uce-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    color: var(--uce-text-primary, #0d1b2a);
    text-decoration: none;
}

.uce-social-btn:active { transform: translateY(0); }

.uce-social-btn svg { flex-shrink: 0; }

.uce-google-btn:hover { border-color: rgba(66, 133, 244, 0.5); }
.uce-apple-btn:hover  { border-color: rgba(255, 255, 255, 0.35); }

.uce-passkey-btn {
    border-color: rgba(107, 30, 63, 0.3);
    color: var(--uce-gold, #b8922d);
}

.uce-passkey-btn:hover {
    border-color: rgba(107, 30, 63, 0.6);
    background: rgba(107, 30, 63, 0.06);
    color: var(--uce-gold, #b8922d);
}

/* OR divider --------------------------------------------------------------- */
.uce-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    color: var(--uce-text-dim, #718096);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.uce-auth-divider::before,
.uce-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* Magic link section ------------------------------------------------------- */
.uce-magic-link-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 16px;
    margin-top: 4px;
    animation: uce-role-in 0.2s ease;
}

.uce-magic-link-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--uce-gold, #b8922d);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.uce-magic-link-toggle:hover { opacity: 0.8; }

.uce-magic-link-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.uce-magic-type-switch {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.uce-magic-type-btn {
    background: none;
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 6px;
    padding: 5px 12px;
    color: var(--uce-text-muted, #4a5568);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.uce-magic-type-btn.is-active {
    border-color: var(--uce-gold, #b8922d);
    background: rgba(107, 30, 63, 0.08);
    color: var(--uce-gold, #b8922d);
}

/* 2FA screen --------------------------------------------------------------- */
.uce-2fa-screen {}

.uce-2fa-code-wrap {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.uce-2fa-code-wrap .uce-form-group { flex: 1; }

.uce-2fa-resend {
    padding-bottom: 11px;
}

.uce-otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 11px 14px !important;
}

/* Auth status message ------------------------------------------------------ */
.uce-auth-status {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(107, 30, 63, 0.1);
    border: 1px solid rgba(107, 30, 63, 0.25);
    color: #b8922d;
}

.uce-auth-status.is-visible { display: block; }
.uce-auth-status.is-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #f08080;
}
.uce-auth-status.is-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #5eee9a;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 880px) {
    .uce-auth-bg-panel { display: none; }
    .uce-auth-card {
        max-width: min(100%, 560px);
        border-radius: 12px;
        padding: 36px 32px;
    }
    .uce-auth-card-header { margin-bottom: 28px; }
    .uce-auth-site-name { font-size: 18px; }
    .uce-auth-title { font-size: 24px !important; }
    .uce-auth-wrap {
        min-height: unset;
        padding: 24px 16px;
    }
    .uce-auth-form { gap: 12px; }
    .uce-social-btn {
        min-height: 46px !important;
        padding: 0 18px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }
    .uce-social-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    .uce-auth-divider { margin: 2px 0; }
}

@media (max-width: 600px) {
    .uce-auth-wrap { padding: 18px 12px; }
    .uce-auth-card { padding: 28px 22px; }
    .uce-form-row { grid-template-columns: 1fr; }
    .uce-account-type-grid { grid-template-columns: repeat(2, 1fr); }
    .uce-auth-title { font-size: 22px !important; }
    .uce-auth-social-row { gap: 8px; }
    .uce-social-btn {
        min-height: 44px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }
    .uce-btn-lg {
        padding: 11px 22px !important;
        font-size: 15px !important;
    }
    .uce-2fa-code-wrap { flex-direction: column; align-items: stretch; }
    .uce-2fa-resend { padding-bottom: 0; }
}

@media (max-width: 420px) {
    .uce-auth-card { padding: 24px 18px; }
    .uce-auth-site-name { font-size: 16px; }
    .uce-auth-title { font-size: 21px !important; }
    .uce-form-label { font-size: 12px; }
    .uce-form-input { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   Auth Form Button Override – Force dark silver/grey
   -------------------------------------------------------------------------- */
.uce-auth-form button[type="submit"],
.uce-auth-form .uce-btn-primary,
.uce-auth-card button.uce-btn,
.uce-auth-card .uce-btn.uce-btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #3d4654 100%) !important;
    border: 1.5px solid rgba(74,85,104,0.4) !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 14px rgba(74,85,104,0.2) !important;
}
.uce-auth-form button[type="submit"]:hover,
.uce-auth-form .uce-btn-primary:hover,
.uce-auth-card button.uce-btn:hover,
.uce-auth-card .uce-btn.uce-btn-primary:hover {
    background: linear-gradient(135deg, #3d4654 0%, #2d3748 100%) !important;
    border-color: rgba(74,85,104,0.6) !important;
    box-shadow: 0 4px 18px rgba(74,85,104,0.3) !important;
}
