/* File: public/assets/css/style-login.css */

:root {
    --bg-body-start: #e2e8f0; 
    --bg-body-end: #cbd5e1; 
    --card-bg: #ffffff;
    --accent: #ec4899;
    --text-main: #0f172a;
    --text-muted: #475569;
    --input-bg: #f8fafc;
    --input-border: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background: radial-gradient(circle at center, var(--bg-body-start) 0%, var(--bg-body-end) 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 8px;
    color: var(--text-main); overflow: hidden;
    flex-direction: column; 
}

.login-wrapper { width: 100%; max-width: 365px; display: flex; flex-direction: column; align-items: center; }

/* ── ULTRA COMPACT CARD ── */
.login-card {
    background: var(--card-bg); border: 1px solid rgba(0, 0, 0, 0.05); width: 100%; 
    padding: 20px 14px; border-radius: 22px; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    text-align: center; position: relative; margin-top: 45px; 
}

/* ── LOGO CONTAINER ── */
.logo-container {
    width: 85px; height: 85px; background: #ffffff; border: 1.5px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px; margin: -55px auto 15px; display: flex; align-items: center; justify-content: center;
    padding: 10px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    position: relative; z-index: 2; 
}
.app-logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }

.title-text { 
    font-size: 24px; font-weight: 800; background: linear-gradient(to right, #ec4899, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.5px; margin-bottom: 2px; 
}
p.subtitle { color: var(--text-muted); font-size: 10px; margin-bottom: 18px; font-weight: 500; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 12px; text-align: left; } 
label { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-main); margin-bottom: 5px; margin-left: 2px; }

.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #94a3b8; }

.input-std {
    width: 100%; padding: 10px 10px 10px 34px; border: 1.5px solid var(--input-border); border-radius: 9px;
    background: var(--input-bg); font-size: 13px; color: var(--text-main); outline: none; transition: 0.2s;
}
.input-std:focus { background: #fff; border-color: var(--accent); }

/* ── PIN CONTAINER ── */
.pin-container { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; justify-content: center; width: 100%; }
.pin-box {
    width: 100%; aspect-ratio: 1 / 1.1; font-size: 18px; font-weight: bold; text-align: center;
    border: 1.5px solid var(--input-border); border-radius: 8px; background: var(--input-bg); color: var(--text-main); outline: none; transition: 0.2s;
}
.pin-box.filled { border-color: var(--accent); color: var(--accent); background: #fff; }

/* ── POLICY BUTTONS ── */
.policy-buttons { display: flex; gap: 8px; margin-top: 15px; width: 100%; }
.btn-policy {
    flex: 1; padding: 8px; font-size: 9.5px; font-weight: 600; color: var(--text-muted);
    background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 8px;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s ease;
}
.btn-policy:hover { background: #ffffff; color: var(--accent); border-color: rgba(236, 72, 153, 0.4); transform: translateY(-1px); box-shadow: 0 2px 5px rgba(236, 72, 153, 0.1); }

/* ── LOADING & RECAPTCHA ── */
.loading-status {
    display: none; align-items: center; justify-content: center; margin-top: 10px; padding: 8px; border-radius: 8px;
    background: #fdf2f8; border: 1px solid #fbcfe8; color: var(--accent); font-size: 11px; font-weight: 600;
}
.spinner {
    display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(236, 72, 153, 0.3); border-radius: 50%;
    border-top-color: var(--accent); animation: spin 1s linear infinite; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-text { font-size: 8.5px; color: #94a3b8; margin-top: 12px; line-height: 1.3; border-top: 1px dashed rgba(0,0,0,0.06); padding-top: 8px; }

/* ── FOOTER ── */
.app-footer { margin-top: 20px; text-align: center; color: var(--text-muted); font-size: 10px; line-height: 1.5; width: 100%; }
.app-footer .version { font-weight: 600; margin-bottom: 4px; letter-spacing: 0.5px; }
.app-footer a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.app-footer a:hover { color: var(--text-main); }
