/* ============================================================
   CrowdSafe — Auth Pages Shared Stylesheet
   Design: Clean Modern Light Mode, Split-Panel Layout
   Primary: teal rgb(57,142,146) | Accent: #0284c7 | BG: #f8fafc
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --auth-primary:        57, 142, 146;
    --auth-primary-rgb:    rgb(57, 142, 146);
    --auth-primary-dark:   #205a5d;
    --auth-primary-light:  #edf7f7;
    --auth-accent:         #0284c7;
    --auth-bg:             #f8fafc;
    --auth-panel-bg:       #f0fdfa;
    --auth-card-bg:        #ffffff;
    --auth-border:         #e2e8f0;
    --auth-border-subtle:  #f1f5f9;
    --auth-text:           #0f172a;
    --auth-text-secondary: #334155;
    --auth-text-muted:     #64748b;
    --auth-error:          #dc2626;
    --auth-error-bg:       #fef2f2;
    --auth-error-border:   #fecaca;
    --auth-success:        #16a34a;
    --auth-success-bg:     #f0fdf4;
    --auth-success-border: #bbf7d0;
    --auth-warning:        #d97706;
    --auth-warning-bg:     #fffbeb;
    --auth-warning-border: #fde68a;
    --auth-input-bg:       #ffffff;
    --auth-input-border:   #cbd5e1;
    --auth-input-focus:    rgba(57, 142, 146, 0.18);
    --auth-radius:         16px;
    --auth-radius-sm:      8px;
    --auth-shadow:         0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    --auth-shadow-lg:      0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.08);
    --auth-transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Page Wrapper ────────────────────────────────────────── */
.auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--auth-bg);
}

/* Ambient background glow */
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 10% 40%, rgba(57, 142, 146, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 55% 50% at 90% 15%, rgba(2, 132, 199, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 85% 85%, rgba(57, 142, 146, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Left Brand Panel ────────────────────────────────────── */
.auth-brand-panel {
    flex: 0 0 44%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 3.5rem 2.5rem;
    background:
        radial-gradient(rgba(57, 142, 146, 0.12) 1.2px, transparent 1.2px),
        linear-gradient(155deg, #f0fdfa 0%, #e6f4f5 50%, #dff0f2 100%);
    background-size: 22px 22px, 100% 100%;
    border-right: 1px solid rgba(57, 142, 146, 0.18);
    overflow: hidden;
}

/* Ambient glow orbs */
.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 142, 146, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative Layered Orbital Rings & Geometric Patterns */
.auth-brand-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-brand-deco-1 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(57, 142, 146, 0.22);
    animation: auth-spin 30s linear infinite;
}

.auth-brand-deco-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px dashed rgba(57, 142, 146, 0.16);
    animation: auth-spin 45s linear infinite reverse;
}

.auth-brand-deco-3 {
    width: 540px;
    height: 540px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(57, 142, 146, 0.09);
    animation: auth-spin 60s linear infinite;
}

.auth-brand-deco-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--auth-primary-rgb);
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(57, 142, 146, 0.6);
}

.auth-brand-deco-dot-2 {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}

.auth-brand-shape {
    display: none;
}

@keyframes auth-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: auth-slide-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Highlighted Logo: Naturally floating with ambient spotlight */
.auth-brand-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-brand-logo-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 250, 0.65) 45%, transparent 75%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    max-width: 240px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(57, 142, 146, 0.18));
    transition: transform 0.3s ease;
}

.auth-brand-logo:hover {
    transform: scale(1.03);
}

.auth-brand-tagline {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: #334155;
    letter-spacing: -0.01em;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

/* ── Right Form Panel ────────────────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    background: var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 2.5rem 2.25rem 2.25rem;
    box-shadow: var(--auth-shadow);
    position: relative;
    overflow: hidden;
    animation: auth-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both 0.05s;
}

/* Top accent bar — perfectly aligned and clipped by overflow:hidden */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(57, 142, 146) 0%, #0284c7 100%);
}

/* ── Card Header ─────────────────────────────────────────── */
.auth-card-header {
    margin-bottom: 1.75rem;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    color: var(--auth-text-muted);
    font-weight: 400;
    line-height: 1.5;
}

/* ── Standard Normal Form Fields ─────────────────────────── */
.auth-field {
    margin-bottom: 1.25rem;
}

.auth-label,
.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text-secondary);
    margin-bottom: 0.4rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field input,
.auth-field select {
    width: 100%;
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
    padding: 0.75rem 0.95rem;
    font-family: inherit;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--auth-text);
    outline: none;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-field input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    opacity: 1;
}

.auth-field input:focus {
    border-color: var(--auth-primary-rgb);
    box-shadow: 0 0 0 3.5px var(--auth-input-focus);
    background: #ffffff;
}

/* Password Toggle Icon */
.auth-field-icon .auth-input-wrapper input {
    padding-right: 2.75rem;
}

.auth-field-icon .auth-icon-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--auth-text-muted);
    transition: color var(--auth-transition);
    display: flex;
    align-items: center;
    line-height: 1;
    user-select: none;
}

.auth-field-icon .auth-icon-btn:hover,
.auth-field-icon .auth-icon-btn:focus {
    color: var(--auth-primary-dark);
    outline: none;
}

.auth-field-icon .auth-icon-btn .material-icons {
    font-size: 1.25rem;
}

/* ── Validation messages & Alerts ────────────────────────── */
.field-validation-valid,
.auth-alert-error:empty,
.text-danger:empty,
.validation-summary-valid,
span.text-danger:empty,
span.field-validation-valid:empty {
    display: none !important;
}

.field-validation-error,
.text-danger:not(:empty) {
    font-size: 0.78rem;
    color: var(--auth-error);
    margin-top: 0.35rem;
    display: block;
    font-weight: 500;
}

.auth-alert-error:not(:empty),
.validation-summary-errors:not(:empty) {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    border-radius: var(--auth-radius-sm);
    color: var(--auth-error);
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    animation: auth-shake 0.35s ease;
}

.auth-alert-error ul,
.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Primary Button ──────────────────────────────────────── */
.auth-btn-primary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: var(--auth-radius-sm);
    background: linear-gradient(135deg, rgb(57, 142, 146) 0%, #2f7a7e 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition), opacity var(--auth-transition), background var(--auth-transition);
    box-shadow: 0 4px 14px rgba(57, 142, 146, 0.32);
}

.auth-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(57, 142, 146, 0.42);
    background: linear-gradient(135deg, #328185 0%, #256468 100%);
}

.auth-btn-primary:hover::after {
    left: 150%;
}

.auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Secondary / outline button */
.auth-btn-secondary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--auth-radius-sm);
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--auth-transition), border-color var(--auth-transition), color var(--auth-transition);
}

.auth-btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: var(--auth-primary-rgb);
    color: var(--auth-primary-dark);
}

.auth-btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Links & Back Navigation ─────────────────────────────── */
.auth-link {
    color: var(--auth-primary-rgb);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--auth-transition);
}

.auth-link:hover {
    color: var(--auth-primary-dark);
    text-decoration: none;
}

.auth-link:hover span:not(.material-icons) {
    text-decoration: underline;
}

.auth-link .material-icons {
    text-decoration: none !important;
    font-size: 1.15rem;
    vertical-align: middle;
    transition: transform var(--auth-transition);
}

.auth-link:hover .material-icons {
    transform: translateX(-3px);
}

/* ── Divider / separator ─────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── OTP Inputs ──────────────────────────────────────────── */
.auth-otp-group {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin: 1.25rem 0;
}

.auth-otp-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    color: var(--auth-text);
    outline: none;
    caret-color: var(--auth-primary-dark);
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition), transform var(--auth-transition);
    padding: 0;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.auth-otp-box::-webkit-inner-spin-button,
.auth-otp-box::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.auth-otp-box:focus {
    border-color: rgb(57, 142, 146);
    box-shadow: 0 0 0 3.5px rgba(57, 142, 146, 0.18);
    transform: scale(1.05);
    background: #ffffff;
}

.auth-otp-box.is-invalid {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-otp-box.filled {
    border-color: rgb(57, 142, 146);
    background: #f0fdfa;
}

.auth-otp-status {
    font-size: 0.85rem;
    color: var(--auth-primary-dark);
    text-align: center;
    min-height: 1.2rem;
    font-weight: 500;
}

/* ── Password Requirements ───────────────────────────────── */
.auth-requirements {
    margin: 0.85rem 0 0.65rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--auth-radius-sm);
}

.auth-requirements-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.auth-requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #64748b;
    transition: color var(--auth-transition);
}

.auth-requirements-list li .material-icons {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color var(--auth-transition), transform var(--auth-transition);
}

.auth-requirements-list li.valid {
    color: var(--auth-success);
    font-weight: 500;
}

.auth-requirements-list li.valid .material-icons {
    color: var(--auth-success);
    transform: scale(1.1);
}

/* ── State Cards (Success / Warning / Error) ─────────────── */
.auth-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.auth-state-icon.success {
    background: var(--auth-success-bg);
    border: 1px solid var(--auth-success-border);
    color: var(--auth-success);
}

.auth-state-icon.error {
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    color: var(--auth-error);
}

.auth-state-icon .material-icons {
    font-size: 1.75rem;
}

/* ── Support Mail Floating Button & Modal Support ────────── */
.float,
.float.btn-primary {
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 26px !important;
    position: fixed !important;
    width: 52px !important;
    height: 52px !important;
    bottom: 28px !important;
    right: 28px !important;
    background: linear-gradient(135deg, rgb(57, 142, 146) 0%, #2f7a7e 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    text-align: center;
    box-shadow: 0 4px 20px rgba(57, 142, 146, 0.4) !important;
    z-index: 1000 !important;
    cursor: pointer;
    transition: transform var(--auth-transition), box-shadow var(--auth-transition);
}

.float:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 25px rgba(57, 142, 146, 0.55) !important;
    color: #ffffff !important;
}

/* Offcanvas form controls in support mail */
.offcanvas {
    background-color: #ffffff;
    color: #0f172a;
}
.offcanvas-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}
.offcanvas-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.offcanvas-body {
    padding: 1.5rem;
}
.offcanvas-body .form-group {
    margin-bottom: 1rem;
}
.offcanvas-body label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}
.offcanvas-body .form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
}
.offcanvas-body .form-control:focus {
    border-color: rgb(57, 142, 146);
    box-shadow: 0 0 0 3px rgba(57, 142, 146, 0.15);
}
.offcanvas-footer {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}
.offcanvas-footer .btn {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
}
.offcanvas-footer .btn-danger {
    background: #f1f5f9;
    color: #475569;
}
.offcanvas-footer .btn-danger:hover {
    background: #e2e8f0;
}
.offcanvas-footer .btn-primary {
    background: linear-gradient(135deg, rgb(57, 142, 146) 0%, #2f7a7e 100%);
    color: #ffffff;
}
.mandatory {
    color: #dc2626;
    margin-left: 2px;
}

/* ── Preloader ───────────────────────────────────────────── */
.auth-preloader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.auth-preloader-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid rgba(57, 142, 146, 0.2);
    border-top-color: rgb(57, 142, 146);
    border-radius: 50%;
    animation: auth-spin-fast 0.75s linear infinite;
}

/* ── Footer row ──────────────────────────────────────────── */
.auth-footer-row {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

.auth-version-badge {
    display: block;
    margin-top: 1.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.04em;
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes auth-slide-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-spin-fast {
    to { transform: rotate(360deg); }
}

@keyframes auth-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

/* ── Centered Full-Page Auth (User Registration / Accreditation) ── */
.auth-page-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(rgba(57, 142, 146, 0.1) 1.2px, transparent 1.2px),
        var(--auth-bg);
    background-size: 24px 24px, 100% 100%;
    padding: 3rem 1.5rem 4rem;
}

.auth-card-wide {
    width: 100%;
    max-width: 900px;
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 2.75rem 2.5rem 2.5rem;
    box-shadow: var(--auth-shadow);
    position: relative;
    overflow: hidden;
    animation: auth-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-card-wide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgb(57, 142, 146) 0%, #0284c7 100%);
}

/* ── Segmented Pill Button Groups ────────────────────────── */
.btn-inline-container {
    display: flex !important;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    border: 1.5px solid #e2e8f0;
    width: 100%;
    margin: 0 !important;
}

.btn-inline-container .btn {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-family: inherit;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 7px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    box-shadow: none !important;
    text-align: center;
    line-height: 1.3;
}

.btn-inline-container .btn:hover:not(.selected) {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.btn-inline-container .btn.selected {
    background: linear-gradient(135deg, rgb(57, 142, 146) 0%, #2f7a7e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(57, 142, 146, 0.35) !important;
}

/* ── Profile Image Upload Avatar ─────────────────────────── */
.auth-avatar-picker {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    transition: border-color var(--auth-transition);
    min-height: 148px;
}

.auth-avatar-picker:hover {
    border-color: rgb(57, 142, 146);
}

.accreditation-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgb(57, 142, 146);
    box-shadow: 0 4px 12px rgba(57, 142, 146, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.accreditation-img:hover {
    transform: scale(1.05);
}

/* ── Form Controls & Input Groups ────────────────────────── */
.auth-card-wide .form-group {
    margin-bottom: 1.25rem;
}

.auth-card-wide label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text-secondary);
    margin-bottom: 0.4rem;
}

.auth-card-wide .form-control {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.95rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: border-color var(--auth-transition), box-shadow var(--auth-transition);
}

.auth-card-wide .form-control:focus {
    border-color: rgb(57, 142, 146);
    box-shadow: 0 0 0 3.5px rgba(57, 142, 146, 0.18);
    background: #ffffff;
}

.auth-card-wide .input-group-append .input-group-text {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    padding: 0.7rem 0.9rem;
}

.auth-card-wide .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

/* Selectize Integration */
.auth-card-wide .selectize-input {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0.65rem 0.95rem !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
    background: #ffffff !important;
    line-height: 1.4 !important;
}

.auth-card-wide .selectize-input.focus {
    border-color: rgb(57, 142, 146) !important;
    box-shadow: 0 0 0 3.5px rgba(57, 142, 146, 0.18) !important;
}

.auth-card-wide .selectize-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
}

.auth-card-wide .selectize-dropdown .active {
    background-color: #f0fdfa !important;
    color: var(--auth-primary-dark) !important;
}

/* Custom File Label */
.auth-card-wide .custom-file-label {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.95rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

.auth-card-wide .custom-file-label::after {
    background: #f1f5f9;
    border-left: 1.5px solid #cbd5e1;
    border-radius: 0 7px 7px 0;
    padding: 0.7rem 1.1rem;
    color: #334155;
    font-weight: 600;
}

/* ── Action Buttons ──────────────────────────────────────── */
.auth-card-wide .save-btn,
.auth-card-wide .btn.save-btn,
.auth-card-wide .btn-primary.save-btn {
    background-image: none !important;
    background: linear-gradient(135deg, rgb(57, 142, 146) 0%, #2f7a7e 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.85rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(57, 142, 146, 0.32) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-card-wide .save-btn:hover,
.auth-card-wide .btn.save-btn:hover,
.auth-card-wide .btn-primary.save-btn:hover {
    background: linear-gradient(135deg, #2f7a7e 0%, #235c5f 100%) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(57, 142, 146, 0.42) !important;
    color: #ffffff !important;
}

.auth-btn-clear,
.auth-card-wide .auth-btn-clear,
.auth-card-wide .cancel-btn,
.auth-card-wide .btn.cancel-btn,
.auth-card-wide .btn-secondary.cancel-btn {
    background-image: none !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #475569 !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.6rem !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-btn-clear:hover,
.auth-card-wide .auth-btn-clear:hover,
.auth-card-wide .cancel-btn:hover,
.auth-card-wide .btn.cancel-btn:hover,
.auth-card-wide .btn-secondary.cancel-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px) !important;
}

/* ── Agency Staff Table ──────────────────────────────────── */
.auth-card-wide .replacetbl,
.auth-card-wide #tblpartMapping {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.auth-card-wide .replacetbl th,
.auth-card-wide #tblpartMapping th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.auth-card-wide .replacetbl td,
.auth-card-wide #tblpartMapping td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #1e293b;
    vertical-align: middle;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-brand-panel {
        display: none;
    }
    .auth-form-panel {
        padding: 2rem 1.25rem;
    }
    .auth-card {
        padding: 2.25rem 1.75rem 1.75rem;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    }
    .auth-card-wide {
        padding: 2rem 1.5rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
    .auth-otp-box {
        width: 42px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ── Utilities ───────────────────────────────────────────── */
.auth-text-center { text-align: center; }
.auth-mt-2  { margin-top: 1rem; }
.auth-mb-1  { margin-bottom: 0.5rem; }
.d-flex     { display: flex; }
