/* =========================================================
    Lens Moment Bali | Client Login
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:         #0a0f1e;
    --navy-mid:     #0f1830;
    --navy-card:    #111c35cc;
    --navy-input:   #0d1628;
    --gold:         #d4a017;
    --gold-light:   #f0c040;
    --gold-muted:   #a87c10;
    --text-main:    #e8e8f0;
    --text-muted:   #7a84a0;
    --border:       rgba(212,160,23,0.18);
    --border-focus: rgba(212,160,23,0.65);
    --radius:       14px;
}

html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--text-main);
    overflow: hidden;
}

/* ── Canvas background ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Page layout ── */
.page {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Left panel ── */
.left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    animation: fadeUp 0.9s ease both;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: grid;
    place-items: center;
    background: rgba(212,160,23,0.08);
    flex-shrink: 0;
}

.brand-logo svg {
    width: 28px;
    height: 28px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 4px;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.18;
    color: var(--text-main);
    margin-bottom: 24px;
}

.tagline em {
    color: var(--gold);
    font-style: italic;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-muted));
}

.divider-line--right {
    background: linear-gradient(90deg, var(--gold-muted), transparent);
}

.divider-icon {
    color: var(--gold);
    font-size: 18px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 400px;
}

/* ── Right panel ── */
.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px;
    animation: fadeUp 0.9s 0.15s ease both;
}

/* ── Card ── */
.card {
    width: 100%;
    max-width: 440px;
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 44px 40px 40px;
    backdrop-filter: blur(18px);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Lock icon */
.lock-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
}

.lock-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212,160,23,0.10);
    border: 1.5px solid var(--border);
    display: grid;
    place-items: center;
}

.lock-star {
    color: var(--gold);
    font-size: 14px;
    margin-top: -8px;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-main);
}

.card-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ── Form fields ── */
.field {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--navy-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(212,160,23,0.10);
}

input:focus ~ .input-icon {
    color: var(--gold);
}

.field-note {
    text-align: right;
    margin-top: 8px;
}

.field-note a {
    font-size: 12.5px;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.field-note a:hover {
    color: var(--gold-light);
}

/* ── Submit button ── */
.btn-login {
    width: 100%;
    padding: 15px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius);
    color: #0a0f1e;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-position 0.4s, transform 0.15s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(212,160,23,0.35);
}

.btn-login:hover {
    background-position: 100% 0;
    box-shadow: 0 6px 28px rgba(212,160,23,0.55);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner (injected by JS) */
.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(10,15,30,0.3);
    border-top-color: #0a0f1e;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

/* ── Card footer ── */
.card-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.card-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.card-footer a:hover {
    color: var(--gold-light);
}

/* ── Page footer ── */
.page-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(10,15,30,0.75);
    backdrop-filter: blur(8px);
}

.page-footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s;
}

.page-footer a:hover {
    color: var(--gold);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    html, body { overflow: auto; }
    .page      { grid-template-columns: 1fr; }
    .left-panel { display: none; }
    .right-panel {
        min-height: 100vh;
        padding: 32px 20px 80px;
    }
    .card { padding: 36px 24px; }
}