/* ============================================================
   Tivnar Auth Pages — Shared Stylesheet
   Brand Color: #fab005 (Amber Gold)
   Theme: Dark Navy + Gold — Refined & Professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
    --gold:         #fab005;
    --gold-dark:    #e09000;
    --gold-light:   #fcc53a;
    --gold-glow:    rgba(250,176,5,0.18);
    --gold-border:  rgba(250,176,5,0.28);
    --navy:         #0d1a26;
    --navy2:        #111f2e;
    --navy3:        #162840;
    --text:         #eef2f5;
    --muted:        #8a9bb0;
    --muted2:       #647a90;
    --white:        #ffffff;
    --error:        #ff6b6b;
    --success:      #40c057;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;
    --radius:       12px;
    --radius-sm:    8px;
    --transition:   0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── Layout: Two-column ── */
.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════ */
.left-panel {
    width: 52%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    overflow: hidden;
}

/* Background gradients */
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 15% 25%, rgba(250,176,5,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 55% 70% at 85% 80%, rgba(250,176,5,0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Dot grid */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(250,176,5,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Decorative rings */
.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(250,176,5,0.10);
    animation: ring-pulse 7s ease-in-out infinite;
    pointer-events: none;
}
.circle-1 { width: 560px; height: 560px; top: -160px; left: -200px; animation-delay: 0s; }
.circle-2 { width: 380px; height: 380px; bottom: -80px; right: 60px;  animation-delay: 2.5s; }
.circle-3 { width: 220px; height: 220px; top: 45%;    left: 62%;     animation-delay: 5s; }

@keyframes ring-pulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50%       { opacity: 0.75; transform: scale(1.04); }
}

/* Gold accent bar on right edge */
.left-panel::after {
    content: '';
    position: absolute;
    top: 15%; right: 0;
    width: 2px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    opacity: 0.25;
}

.left-content { position: relative; z-index: 2; }

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
}
.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(250,176,5,0.35));
}

/* ── Panel Badge ── */
.panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250,176,5,0.10);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 20px;
    margin-bottom: 26px;
}
.panel-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ── Panel Title ── */
.panel-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.8vw, 50px);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 22px;
}
.panel-title span { color: var(--gold); }

/* ── Panel Description ── */
.panel-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 44px;
}

/* ── Feature List (Login page) ── */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    background: rgba(250,176,5,0.08);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 16px;
    transition: all var(--transition);
}
.feature-item:hover .feature-icon {
    background: rgba(250,176,5,0.18);
    box-shadow: 0 0 18px rgba(250,176,5,0.2);
}
.feature-text { font-size: 14px; color: var(--muted); }
.feature-text strong {
    color: var(--text);
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

/* ── Steps (Signup page) ── */
.steps { display: flex; flex-direction: column; gap: 22px; }
.step  { display: flex; align-items: flex-start; gap: 16px; }
.step-num {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    box-shadow: 0 4px 16px rgba(250,176,5,0.35);
}
.step-text { font-size: 14px; color: var(--muted); padding-top: 5px; }
.step-text strong { color: var(--text); display: block; margin-bottom: 3px; }

/* ── Trust Bar (Signup page) ── */
.trust-bar {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(250,176,5,0.15);
}
.trust-item { text-align: center; }
.trust-num {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(250,176,5,0.4);
}
.trust-label { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ══════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════ */
.right-panel {
    flex: 1;
    background: var(--navy2);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 50px;
    overflow-y: auto;
    border-left: 1px solid rgba(250,176,5,0.12);
    position: relative;
    min-height: 100vh;
}

/* Top gold line */
.right-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-box {
    width: 100%;
    max-width: 420px;
    padding: 30px 0 60px;
}

/* ── Form Heading ── */
.form-heading {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--white);
    margin-bottom: 6px;
}
.form-sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}
.form-sub a { color: var(--gold); font-weight: 500; }

/* ── Service Tabs (Login) ── */
.service-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid var(--gold-border);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.3;
}
.tab-btn i { display: block; font-size: 17px; margin-bottom: 5px; }
.tab-btn.active,
.tab-btn:hover {
    background: rgba(250,176,5,0.12);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 16px rgba(250,176,5,0.15);
}

/* ── Service Cards (Signup) ── */
.service-select-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.service-card {
    padding: 14px 8px;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}
.service-card i { display: block; font-size: 20px; margin-bottom: 6px; }
.service-card.active,
.service-card:hover {
    background: rgba(250,176,5,0.12);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 18px rgba(250,176,5,0.15);
}

/* ── Form Rows ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group { margin-bottom: 18px; }

/* ── Labels ── */
label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 7px;
}

/* ── Inputs ── */
.input-wrap { position: relative; }

.input-wrap .icon-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted2);
    font-size: 13px;
    pointer-events: none;
    transition: color var(--transition);
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(250,176,5,0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
select { cursor: pointer; }
select option { background: var(--navy2); color: var(--text); }

input:focus,
select:focus {
    border-color: var(--gold);
    background: rgba(250,176,5,0.04);
    box-shadow: 0 0 0 3px rgba(250,176,5,0.10);
}
input:focus + .icon-left,
.input-wrap:focus-within .icon-left {
    color: var(--gold);
}
input::placeholder { color: rgba(138,155,176,0.45); }

/* Password toggle button */
.pass-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted2);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    transition: color var(--transition);
}
.pass-toggle:hover { color: var(--gold); }

/* ── Password Strength ── */
.strength-bar {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.strength-seg {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255,255,255,0.07);
    transition: background 0.3s;
}
.strength-label {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 500;
}

/* ── Form Options (Remember / Forgot) ── */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.remember input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    padding: 0;
}
.forgot {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
}
.forgot:hover { color: var(--gold-light); }

/* ── Checkbox Group ── */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}
.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--gold);
    margin-top: 2px;
    padding: 0;
}
.checkbox-group span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Primary Button ── */
.btn-primary-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 28px rgba(250,176,5,0.35);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(250,176,5,0.50);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.btn-primary-auth:active { transform: translateY(0); }

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--muted2);
    font-size: 12px;
    letter-spacing: 0.5px;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(250,176,5,0.12);
}

/* ── Social Buttons ── */
.social-btns { display: flex; gap: 10px; margin-bottom: 28px; }
.social-btn {
    flex: 1;
    padding: 11px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.social-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.22);
    color: var(--white);
}

/* ── Footer Link ── */
.auth-footer-link {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.auth-footer-link a { color: var(--gold); font-weight: 600; }

/* ── Entry Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.form-box > * {
    animation: fadeUp 0.5s ease both;
}
.form-box > *:nth-child(1)  { animation-delay: 0.08s; }
.form-box > *:nth-child(2)  { animation-delay: 0.13s; }
.form-box > *:nth-child(3)  { animation-delay: 0.18s; }
.form-box > *:nth-child(4)  { animation-delay: 0.23s; }
.form-box > *:nth-child(5)  { animation-delay: 0.28s; }
.form-box > *:nth-child(6)  { animation-delay: 0.33s; }
.form-box > *:nth-child(7)  { animation-delay: 0.38s; }
.form-box > *:nth-child(8)  { animation-delay: 0.43s; }
.form-box > *:nth-child(9)  { animation-delay: 0.48s; }
.form-box > *:nth-child(10) { animation-delay: 0.53s; }
.form-box > *:nth-child(11) { animation-delay: 0.58s; }
.form-box > *:nth-child(12) { animation-delay: 0.63s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
    body { flex-direction: column; overflow-y: auto; }
    .auth-layout { flex-direction: column; }
    .left-panel {
        width: 100%;
        padding: 40px 30px 36px;
    }
    .feature-list,
    .steps,
    .trust-bar { display: none; }
    .panel-desc { margin-bottom: 0; }
    .right-panel {
        width: 100%;
        min-height: unset;
        padding: 40px 24px 60px;
        border-left: none;
        border-top: 1px solid rgba(250,176,5,0.12);
    }
    .form-box { padding: 10px 0 40px; }
}

@media (max-width: 520px) {
    .form-row      { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr 1fr; }
    .service-tabs  { flex-wrap: wrap; }
    .left-panel    { padding: 30px 20px; }
    .right-panel   { padding: 30px 16px 60px; }
}

/* ── Session Message Box ── */
.session-msg {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

/* Success — green */
.session-msg .alert-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(40, 199, 111, 0.10);
    border: 1px solid rgba(40, 199, 111, 0.30);
    border-radius: 10px;
    color: #28c76f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.session-msg .alert-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Error / Danger — red */
.session-msg .alert-danger {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(234, 84, 85, 0.10);
    border: 1px solid rgba(234, 84, 85, 0.30);
    border-radius: 10px;
    color: #ea5455;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.session-msg .alert-danger::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Warning — gold */
.session-msg .alert-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(250, 176, 5, 0.10);
    border: 1px solid rgba(250, 176, 5, 0.30);
    border-radius: 10px;
    color: #fab005;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.session-msg .alert-warning::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Info — teal */
.session-msg .alert-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(0, 207, 232, 0.10);
    border: 1px solid rgba(0, 207, 232, 0.30);
    border-radius: 10px;
    color: #00cfe8;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.session-msg .alert-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Inline field error (under inputs) */
.field-error {
    color: #ea5455;
    font-size: 11px;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.field-error::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}
.input-error {
    border-color: #ea5455 !important;
    box-shadow: 0 0 0 3px rgba(234, 84, 85, 0.12) !important;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Validation Error Styles ── */
.alert-danger {
    color: #ff6b6b;
    font-size: 11px;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.alert-danger::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}
.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12) !important;
}

/* ── Submit Button Loading State ── */
.btn-primary-auth:disabled {
    opacity: 0.80;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 6px 24px rgba(250, 176, 5, 0.20) !important;
}

/* Spinner icon animation */
@keyframes btn-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(11, 25, 41, 0.35);
    border-top-color: #0b1929;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* Dots bounce for loading text */
@keyframes dot-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40%            { opacity: 1;   transform: translateY(-3px); }
}
.btn-dot {
    display: inline-block;
    animation: dot-bounce 1.2s infinite ease-in-out;
}
.btn-dot:nth-child(2) { animation-delay: 0.15s; }
.btn-dot:nth-child(3) { animation-delay: 0.30s; }