/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #e0f2fe;
    color: #0c2a4a;
    min-height: 100vh;
}

/* ── Nav ── */
nav {
    background: #0369a1;
    padding: .75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}
nav a {
    color: #e0f2fe;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover { color: #fff; }

/* ── Main layout ── */
main {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Card ── */
.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(3, 105, 161, 0.12);
    border: 1px solid #bae6fd;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.card h1, .card h2 { font-size: 1.5rem; color: #0369a1; }
.card h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Form ── */
form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 360px;
}
label { font-size: .875rem; font-weight: 600; }
input[type="text"], input[type="password"] {
    padding: .6rem .75rem;
    border: 1px solid #7dd3fc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}
input:focus { outline: 2px solid #0369a1; border-color: transparent; }

/* ── Buttons ── */
button {
    padding: .55rem 1.25rem;
    background: #0369a1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
button:hover { background: #075985; }
#logout-btn { background: #ef4444; align-self: flex-start; }
#logout-btn:hover { background: #dc2626; }

/* ── Table ── */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
th { background: #e0f2fe; text-align: left; padding: .6rem .75rem; color: #0369a1; }
td { padding: .6rem .75rem; border-top: 1px solid #bae6fd; }
tr:hover td { background: #f0f9ff; }

/* ── IP display ── */
.ip-card {
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}
.ip-label {
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0284c7;
}
.ip-address {
    font-size: 3rem;
    font-weight: 700;
    color: #0369a1;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}
.ip-note {
    font-size: .875rem;
    color: #7dd3fc;
}

/* ── Utilities ── */
.hidden { display: none !important; }
.error { color: #dc2626; font-size: .9rem; }
