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

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.card h1 {
    font-size: 1.6rem;
    margin-bottom: .25rem;
    color: #1a1a2e;
}

.card .subtitle {
    font-size: .85rem;
    color: #888;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    transition: border .2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
}

.btn {
    display: block;
    width: 100%;
    padding: .75rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.4rem;
    transition: background .2s;
}

.btn:hover { background: #4338ca; }

.msg {
    padding: .65rem .9rem;
    border-radius: 6px;
    font-size: .88rem;
    margin-bottom: 1.1rem;
}

.msg.error   { background: #fee2e2; color: #b91c1c; }
.msg.success { background: #dcfce7; color: #15803d; }

.link-row {
    text-align: center;
    margin-top: 1.1rem;
    font-size: .85rem;
    color: #666;
}

.link-row a { color: #4f46e5; text-decoration: none; font-weight: 600; }
.link-row a:hover { text-decoration: underline; }

/* Dashboard */
body.dash {
    align-items: flex-start;
    justify-content: flex-start;
    background: #f0f2f5;
}

.topbar {
    background: #1a1a2e;
    color: #fff;
    padding: .9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
}

.topbar .brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .5px; }

.topbar a {
    color: #c7d2fe;
    text-decoration: none;
    font-size: .88rem;
}

.topbar a:hover { color: #fff; }

.main {
    margin-top: 60px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
}

.welcome {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.welcome h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: .5rem; }
.welcome p  { color: #666; font-size: .95rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-card {
    background: #f5f3ff;
    border-radius: 8px;
    padding: 1.1rem;
}

.info-card .label { font-size: .75rem; color: #6d60c8; font-weight: 600; text-transform: uppercase; }
.info-card .value { font-size: 1rem; color: #1a1a2e; margin-top: .3rem; word-break: break-all; }
