* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter,Segoe UI,Roboto,Arial,sans-serif;
    background: #f4f6fb;
    color: #111827;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card,
.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.login-card {
    width: min(100%, 420px);
}

.login-card h1,
.calendar-header h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.login-card p,
.calendar-header p {
    margin: 0 0 18px;
    color: #64748b;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}

input,
button,
a {
    font: inherit;
}

input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.error {
    color: #b91c1c;
    background: #fef2f2;
    border-radius: 10px;
    padding: 10px 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.calendar-header-actions a {
    color: #2563eb;
    text-decoration: none;
}

main {
    padding: 24px;
}

#calendar {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 20;
}

.modal.hidden {
    display: none;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
}

.modal-card {
    position: relative;
    width: min(100%, 520px);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.detail-row {
    margin: 8px 0;
    color: #334155;
}

.danger {
    background: #dc2626;
}

.danger:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
