* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #f1f3f5;
    color: #202124;
}

body {
    min-height: 100vh;
}

.page {
    width: min(700px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.page.narrow {
    max-width: 500px;
    padding-top: 8vh;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
}

h1 {
    margin: 0 0 28px;
    text-align: center;
    font-size: 2rem;
}

label {
    display: block;
    font-size: 1.15rem;
    font-weight: bold;
    margin: 18px 0 8px;
}

input[type="text"],
input[type="password"],
input[type="time"] {
    width: 100%;
    min-height: 58px;
    border: 2px solid #c9cdd1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 1.5rem;
    background: white;
}

input:focus {
    outline: none;
    border-color: #1a73e8;
}

.button {
    width: 100%;
    min-height: 64px;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    font-size: 1.35rem;
    font-weight: bold;
    cursor: pointer;
}

.button.primary {
    background: #1a73e8;
    color: white;
}

.button.primary:active {
    transform: scale(.99);
}

.error,
.success {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.error {
    background: #fde8e8;
    color: #a61b1b;
}

.success {
    background: #e6f4ea;
    color: #137333;
}

.hint {
    color: #666;
    font-size: .95rem;
    line-height: 1.4;
}

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

.driver {
    font-size: 1.25rem;
    font-weight: bold;
}

.date {
    margin-top: 5px;
    color: #666;
}

.vehicle {
    font-size: 1.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.time-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.time-row label {
    margin: 0;
    font-size: 1.5rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.5rem;
}

.checkbox-row input {
    width: 32px;
    height: 32px;
    margin: 0;
}

.save {
    min-height: 80px;
    font-size: 1.6rem;
}

.logout {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #666;
    text-decoration: none;
}

@media (max-width: 500px) {
    .page {
        padding: 10px;
    }

    .card {
        padding: 18px;
        border-radius: 12px;
    }

    .header {
        align-items: flex-start;
    }

    .vehicle {
        font-size: 1.35rem;
    }
}
