/* ═══════════════════════════════════════════════════════════
   CameKart Auth — Photography-Themed Login & Registration CSS
   Dark cinematic | Golden aperture accent | Film-strip detail
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --accent:       #E8A020;
    --accent-light: #F5BE55;
    --accent-glow:  rgba(232,160,32,.18);
    --bg-dark:      #0A0C0F;
    --bg-panel:     #111318;
    --bg-card:      #16191F;
    --border:       rgba(255,255,255,.07);
    --border-focus: rgba(232,160,32,.5);
    --text-primary: #F0EDE8;
    --text-muted:   #7A7A85;
    --text-label:   #A8A5A0;
    --error:        #E05555;
    --success:      #3DBD7D;
    --input-bg:     rgba(255,255,255,.04);
    --radius:       14px;
    --radius-sm:    8px;
    --shadow-card:  0 24px 80px rgba(0,0,0,.6);
}

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

.cka-body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }

/* ── Split layout ────────────────────────────────────────── */
.cka-split {
    display: flex;
    min-height: 100vh;
}

/* ── Left panel ──────────────────────────────────────────── */
.cka-panel-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #0D1117 0%, #141820 60%, #0A0C0F 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

/* Subtle grid texture */
.cka-panel-left::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Lens rings */
.cka-lens-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232,160,32,.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: cka-pulse 6s ease-in-out infinite;
}
.cka-ring-1 { width: 520px; height: 520px; animation-delay: 0s; }
.cka-ring-2 { width: 380px; height: 380px; animation-delay: 1.5s; border-color: rgba(232,160,32,.18); }
.cka-ring-3 { width: 250px; height: 250px; animation-delay: 3s;   border-color: rgba(232,160,32,.25); }

@keyframes cka-pulse {
    0%, 100% { opacity: .5; transform: translate(-50%,-50%) scale(1); }
    50%       { opacity: 1;  transform: translate(-50%,-50%) scale(1.02); }
}

/* Lens core SVG */
.cka-lens-core {
    position: relative;
    z-index: 2;
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 0 40px rgba(232,160,32,.3));
    animation: cka-rotate 20s linear infinite;
    margin-bottom: 40px;
}
@keyframes cka-rotate { to { transform: rotate(360deg); } }

/* Panel text */
.cka-panel-text {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cka-panel-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.cka-panel-sub {
    font-size: .85rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Film strip */
.cka-film-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    height: 36px;
    background: rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.04);
}
.cka-film-strip span {
    flex: 1;
    margin: 5px 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.04);
}

/* ── Right panel ─────────────────────────────────────────── */
.cka-panel-right {
    flex: 1;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}

/* ── Form card ───────────────────────────────────────────── */
.cka-form-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 40px;
    box-shadow: var(--shadow-card);
    animation: cka-fade-up .5s ease both;
}
@keyframes cka-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Brand / Logo ────────────────────────────────────────── */
.cka-brand { text-align: center; margin-bottom: 28px; }
.cka-logo  { max-height: 52px; }
.cka-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
}
.cka-cam   { color: var(--text-primary); }
.cka-kart  { color: var(--accent); }
.cka-aperture {
    font-size: 1.2rem;
    color: var(--accent);
    margin-left: 4px;
    animation: cka-rotate 8s linear infinite;
    display: inline-block;
}

/* ── Headings ────────────────────────────────────────────── */
.cka-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.cka-subheading {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ── Alerts ──────────────────────────────────────────────── */
.cka-alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: .85rem;
    margin-bottom: 20px;
    animation: cka-fade-up .3s ease;
}
.cka-alert-error   { background: rgba(224,85,85,.12); border: 1px solid rgba(224,85,85,.3); color: #FF8A8A; }
.cka-alert-success { background: rgba(61,189,125,.12); border: 1px solid rgba(61,189,125,.3); color: #5DEAA8; }

/* ── Fields ──────────────────────────────────────────────── */
.cka-field {
    margin-bottom: 18px;
}
.cka-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-label);
    margin-bottom: 7px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.cka-forgot {
    font-size: .78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
}
.cka-forgot:hover { color: var(--accent-light); }

.cka-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cka-input-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.cka-input-wrap input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 44px 11px 42px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--text-primary);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.cka-input-wrap input::placeholder { color: var(--text-muted); }
.cka-input-wrap input:focus {
    border-color: var(--border-focus);
    background: rgba(232,160,32,.04);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Eye toggle */
.cka-eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.cka-eye-toggle:hover { color: var(--accent); }
.cka-eye-toggle svg   { width: 17px; height: 17px; }

/* ── Password strength ───────────────────────────────────── */
.cka-strength-bar {
    height: 3px;
    background: rgba(255,255,255,.06);
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
}
.cka-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width .4s ease, background .4s;
}
.cka-strength-label {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 4px;
    height: 14px;
}

/* ── Checkbox ────────────────────────────────────────────── */
.cka-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: .83rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.4;
}
.cka-checkbox input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────── */
.cka-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.cka-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #D4860A 100%);
    color: #0A0C0F;
    box-shadow: 0 4px 20px rgba(232,160,32,.3);
}
.cka-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(232,160,32,.45);
    color: #0A0C0F;
}
.cka-btn-primary:active { transform: translateY(0); }
.cka-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.cka-btn-social {
    flex: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: .83rem;
}
.cka-btn-social:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.15);
    color: var(--text-primary);
}

/* Spinner */
.cka-spinner { width: 18px; height: 18px; animation: cka-spin .8s linear infinite; }
@keyframes cka-spin { to { transform: rotate(360deg); } }

/* ── Divider ─────────────────────────────────────────────── */
.cka-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.cka-divider::before,
.cka-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Social row ──────────────────────────────────────────── */
.cka-social-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* ── Switch link ─────────────────────────────────────────── */
.cka-switch {
    text-align: center;
    font-size: .83rem;
    color: var(--text-muted);
    margin-top: 22px;
}
.cka-switch a { color: var(--accent); font-weight: 600; }
.cka-switch a:hover { color: var(--accent-light); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .cka-panel-left { display: none; }
    .cka-panel-right { background: var(--bg-dark); }
}
@media (max-width: 480px) {
    .cka-form-card { padding: 32px 22px; border-radius: 0; border: none; box-shadow: none; }
    .cka-panel-right { padding: 20px 0; }
}
