/* ─────────────────────────────────────────────────────────────────────
   Delta Platform — Authentication pages (Login / Register)
   Modern split-layout with brand panel and form panel.
   ───────────────────────────────────────────────────────────────────── */

.delta-auth-page {
    min-height: 100vh;
    background: var(--delta-gray-50, #F9FAFB);
    display: flex;
    align-items: stretch;
    padding: 0;
}

.delta-auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

@media (max-width: 960px) {
    .delta-auth-shell { grid-template-columns: 1fr; }
    .delta-auth-brand { display: none; }
}

/* ── BRAND PANEL (left) ──────────────────────────────────────────── */

.delta-auth-brand {
    position: relative;
    background: linear-gradient(135deg, #0F2A6B 0%, #1A56DB 60%, #1C3FAA 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.delta-auth-brand--accent {
    background: linear-gradient(135deg, #0F2A6B 0%, #1A56DB 50%, #0E9F6E 100%);
}

.delta-auth-brand__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.delta-auth-brand__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: delta-auth-float 14s ease-in-out infinite;
}
.delta-auth-brand__blob--1 {
    width: 480px; height: 480px;
    background: linear-gradient(135deg, #38BDF8, #6366F1);
    top: -140px; right: -100px;
}
.delta-auth-brand__blob--2 {
    width: 380px; height: 380px;
    background: linear-gradient(135deg, #F472B6, #FB923C);
    bottom: -120px; left: -80px;
    animation-delay: -7s;
}
@keyframes delta-auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.08); }
}

.delta-auth-brand__content {
    position: relative;
    max-width: 460px;
}

.delta-auth-brand__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: clamp(40px, 8vh, 80px);
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: fit-content;
}
.delta-auth-brand__logo svg { color: #FFC93C; }

.delta-auth-brand__heading {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 var(--delta-space-4);
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.delta-auth-brand__lede {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.9);
    margin: 0 0 var(--delta-space-8);
}

.delta-auth-brand__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.delta-auth-brand__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
}
.delta-auth-brand__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

/* ── FORM PANEL (right) ──────────────────────────────────────────── */

.delta-auth-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 5vw, 56px);
    background: var(--delta-gray-50, #F9FAFB);
    overflow-y: auto;
}

.delta-auth-panel__top {
    margin-bottom: var(--delta-space-6);
}
.delta-auth-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--delta-gray-600);
    background: #fff;
    border: 1px solid var(--delta-border-color, #E5E7EB);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.delta-auth-panel__back:hover {
    color: var(--delta-primary);
    border-color: var(--delta-primary-light, #DBEAFE);
    background: var(--delta-primary-light, #DBEAFE);
}

.delta-auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px -20px rgba(15, 42, 107, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--delta-border-color, #E5E7EB);
}

.delta-auth-card__header {
    text-align: center;
    margin-bottom: var(--delta-space-8);
}

.delta-auth-card__icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--delta-primary-light, #DBEAFE), #fff);
    color: var(--delta-primary);
    box-shadow: 0 8px 20px -8px rgba(26, 86, 219, 0.4);
    margin-bottom: var(--delta-space-4);
}

.delta-auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--delta-gray-900);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.delta-auth-card__subtitle {
    color: var(--delta-gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.delta-auth-card__footer {
    text-align: center;
    margin-top: var(--delta-space-6);
    padding-top: var(--delta-space-6);
    border-top: 1px solid var(--delta-border-color, #E5E7EB);
    color: var(--delta-gray-600);
    font-size: 0.9rem;
}

/* ── INPUT GROUPS (icon-prefixed inputs) ─────────────────────────── */

.delta-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.delta-input-group__icon {
    position: absolute;
    left: 14px;
    color: var(--delta-gray-400, #9CA3AF);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
}
html[dir="rtl"] .delta-input-group__icon { left: auto; right: 14px; }

.delta-form-control--with-icon {
    padding-left: 44px;
}
html[dir="rtl"] .delta-form-control--with-icon {
    padding-left: 12px;
    padding-right: 44px;
}

.delta-input-group__toggle {
    position: absolute;
    right: 10px;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: transparent;
    border: 0;
    color: var(--delta-gray-400, #9CA3AF);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.delta-input-group__toggle:hover {
    color: var(--delta-primary);
    background: var(--delta-gray-100, #F3F4F6);
}
html[dir="rtl"] .delta-input-group__toggle { right: auto; left: 10px; }

/* When toggle is shown, leave room on the right of the input */
.delta-input-group:has(.delta-input-group__toggle) .delta-form-control { padding-right: 50px; }
html[dir="rtl"] .delta-input-group:has(.delta-input-group__toggle) .delta-form-control { padding-right: 44px; padding-left: 50px; }

.delta-form-fine {
    font-size: 0.8rem;
    color: var(--delta-gray-500, var(--delta-gray-600));
    line-height: 1.5;
    margin: var(--delta-space-2) 0 var(--delta-space-5);
    text-align: center;
}

/* ── SEGMENTED CONTROL (role tabs) ───────────────────────────────── */

.delta-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    background: var(--delta-gray-100, #F3F4F6);
    border-radius: 12px;
    margin-bottom: var(--delta-space-6);
}

.delta-segmented__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--delta-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
}
.delta-segmented__btn:hover { color: var(--delta-gray-900); }
.delta-segmented__btn.is-active {
    background: #fff;
    color: var(--delta-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* ── LINKS ───────────────────────────────────────────────────────── */

.delta-link {
    color: var(--delta-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}
.delta-link:hover { color: var(--delta-primary-dark, #1C3FAA); text-decoration: underline; }
.delta-link--strong { font-weight: 600; }

/* ── HIDE main site header/footer on auth pages for cleaner UX ──── */

body:has(.delta-auth-page) > .delta-site-header,
body:has(.delta-auth-page) > .delta-site-footer { display: none !important; }

body:has(.delta-auth-page) { margin: 0; padding: 0; }
