@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg:           #f0f2f5;
    --card-bg:      #ffffff;
    --primary:      #5b6af0;
    --primary-hover:#4a59e0;
    --text:         #1a202c;
    --muted:        #718096;
    --border:       #e2e8f0;
    --error-bg:     #fff5f5;
    --error-text:   #c53030;
    --error-border: #fed7d7;
    --radius:       10px;
    --shadow:       0 4px 28px rgba(0, 0, 0, 0.09);
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 24px;
}

/* ── Two-column layout ────────────────────────────────── */
.layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    align-items: start;
}

/* ── Fingerprint panel ────────────────────────────────── */
.fp-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    overflow: hidden;
}

.fp-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 20px;
}

.fp-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.fp-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fp-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 8px;
}

.fp-row {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 2px 0;
}

.fp-key {
    flex: 0 0 150px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    padding-top: 1px;
}

.fp-val {
    flex: 1;
    color: var(--text);
    word-break: break-all;
    font-size: 12.5px;
}

.fp-break { word-break: break-all; }

.fp-mono {
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 11.5px;
}

.fp-ua {
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    word-break: break-all;
}

.fp-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fp-list-item {
    font-size: 12px;
    color: var(--text);
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
}

/* ── Login panel ──────────────────────────────────────── */
.login-panel {
    position: sticky;
    top: 32px;
}

/* ── Card ─────────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    width: 100%;
}

/* ── Responsive: stack on small screens ──────────────── */
@media (max-width: 720px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .login-panel {
        position: static;
    }
}

/* ── Typography ───────────────────────────────────────── */
h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
}

p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

pre {
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 14px 16px;
    font-size: 13px;
    overflow-x: auto;
    margin-bottom: 16px;
}

/* ── Form elements ────────────────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fafbfc;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 106, 240, 0.12);
}

input[type="submit"] {
    display: block;
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
}

input[type="submit"]:hover {
    background: var(--primary-hover);
}

input[type="submit"]:active {
    transform: scale(0.98);
}

/* ── Error alert ──────────────────────────────────────── */
.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}
