/* =============================================================
   PUBLIC LAB PICKER — CSS
   /public/css/public/lab_picker.css
   ============================================================= */

:root {
    --primary: #1a56db;
    --primary-dark: #1342a8;
    --primary-light: #e8f0fe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg: #f8faff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ── */
.pub-navbar {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26,86,219,.08);
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.pub-logo img { height: 34px; }
.pub-logo-name { font-size: 1rem; font-weight: 700; color: var(--primary); }
.pub-logo-sub  { font-size: 0.65rem; color: var(--text-muted); display: block; }
.pub-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: white;
    transition: all .2s;
}
.pub-nav-back:hover { color: var(--primary); border-color: var(--primary); }

/* ── Main / Card ── */
.pub-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.pub-card {
    background: white;
    border-radius: 24px;
    padding: 48px 44px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(26,86,219,.1);
    border: 1px solid rgba(26,86,219,.07);
}
.pub-card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(26,86,219,.25);
}
.pub-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.pub-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ── Form (legacy, kept for fallback) ── */
.pub-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: block;
}
.pub-form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fafbff;
}
.pub-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
    background: white;
}
.pub-form-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.pub-error-msg {
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pub-form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Buttons ── */
.pub-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 20px rgba(26,86,219,.28);
    transition: transform .2s, box-shadow .2s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.pub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,86,219,.35);
    color: white;
}
.pub-btn-google {
    width: 100%;
    padding: 14px 20px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.pub-btn-google:hover {
    border-color: #4285F4;
    box-shadow: 0 4px 16px rgba(66,133,244,.18);
    background: #fafbff;
    color: #374151;
}

/* ── Info / Divider / Admin link ── */
.pub-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #0369a1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.pub-info-box i { flex-shrink: 0; margin-top: 1px; }
.pub-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 28px 0;
}
.pub-admin-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.pub-admin-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.pub-admin-link a:hover { text-decoration: underline; }

/* ── Footer ── */
.pub-footer {
    text-align: center;
    padding: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 520px) {
    .pub-card { padding: 32px 24px; }
}
