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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #eef2f7;
    color: #1f2937;
}

/* ---------- Main Container ---------- */

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

/* ---------- Header ---------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* ---------- Buttons ---------- */

button,
a.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 10px;

    padding: 10px 16px;

    font-size: .95rem;
    font-weight: 600;

    cursor: pointer;
    text-decoration: none;

    transition: all .2s ease;
}

button:hover,
a.btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-secondary {
    background: #374151;
    color: white;
}

/* ---------- Child Cards ---------- */

.children {
    display: grid;
    gap: 20px;
}

.child-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.child-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #3b82f6;
    color: white;

    font-weight: 700;
    font-size: 1.1rem;
}

.child-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.logout-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-bottom: 6px;
}

.logout-time {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ---------- Action Buttons ---------- */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actions button {
    flex: 1;
    min-width: 70px;
}

.actions .btn-danger {
    flex-basis: 100%;
}

/* ---------- Login ---------- */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.login-card button {
    width: 100%;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    body {
        font-size: 18px;
    }

    .container {
        margin: 12px;
        padding: 0;
    }

    h1 {
        font-size: 2rem;
        text-align: center;
    }

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .header .btn {
        width: 100%;
        font-size: 1.1rem;
        padding: 16px;
    }

    .child-card {
        padding: 24px;
        border-radius: 20px;
    }

    .avatar {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .child-name {
        font-size: 1.6rem;
    }

    .logout-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .logout-time {
        display: block;
        text-align: center;
        font-size: 1.8rem;
        padding: 16px;
        margin-bottom: 24px;
    }

    .actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .actions button {
        min-height: 64px;
        font-size: 1.2rem;
        font-weight: 700;
        padding: 16px;
    }

    .actions .btn-danger {
        grid-column: 1 / -1;
        min-height: 64px;
    }
}