:root {
    --blush: #f7d9df;
    --rose: #d79aa7;
    --deep-rose: #9f5f6d;
    --cream: #fffaf7;
    --text: #4a2f36;
    --muted: #7a5b63;
    --white: #ffffff;
    --border: rgba(159, 95, 109, 0.25);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.9), transparent 35%),
        linear-gradient(135deg, var(--cream), var(--blush));
    color: var(--text);
}

a {
    color: var(--deep-rose);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.card {
    width: 100%;
    max-width: 820px;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255,255,255,.65);
    box-shadow: 0 20px 60px rgba(159,95,109,.18);
    backdrop-filter: blur(8px);
}

.center {
    text-align: center;
}

.initials {
    font-size: clamp(2rem, 7vw, 4.6rem);
    letter-spacing: .08em;
    color: var(--deep-rose);
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.divider {
    width: 140px;
    height: 1px;
    background: var(--rose);
    margin: 0 auto 2rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
}

.divider::before { left: -10px; }
.divider::after { right: -10px; }

h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: normal;
    margin: 0 0 1rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
    margin-top: 0;
}

.date {
    font-size: clamp(1.25rem, 4vw, 2rem);
    letter-spacing: .16em;
    color: var(--deep-rose);
    margin-top: 1.25rem;
}

.names {
    margin-top: 2rem;
    font-size: clamp(1.05rem, 3vw, 1.5rem);
    letter-spacing: .04em;
}

.small,
.muted {
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.nav {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button,
button {
    display: inline-block;
    border: 1px solid var(--deep-rose);
    background: var(--deep-rose);
    color: white;
    text-decoration: none;
    padding: .85rem 1.2rem;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.button.secondary {
    color: var(--deep-rose);
    background: transparent;
}

.form {
    max-width: 560px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

label {
    display: block;
    margin: 1rem 0 .35rem;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255,255,255,.85);
}

textarea {
    min-height: 120px;
}

.notice {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-family: Arial, sans-serif;
    background: rgba(255,255,255,.75);
    border: 1px solid var(--border);
}

.error {
    border-color: #b00020;
    color: #7b0015;
}

.success {
    border-color: #357a38;
    color: #1b5e20;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background: rgba(255,255,255,.7);
}

.table th,
.table td {
    padding: .75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    font-family: Arial, sans-serif;
}

.tile {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.7);
}

@media (max-width: 520px) {
    .card {
        padding: 2.25rem 1.25rem;
        border-radius: 22px;
    }
}

.field-help {
    display: block;
    margin-top: .35rem;
    font-family: Arial, sans-serif;
    font-size: .92rem;
}

.success-text {
    color: #1b5e20;
}

.error-text {
    color: #7b0015;
}

.input-error {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.12);
}

button.disabled,
button:disabled {
    opacity: .55;
    cursor: not-allowed;
}


/* Admin password validation */
.password-rules {
    margin: 0.5rem 0 1rem;
    font-size: 0.95rem;
}

.password-rules div,
.password-match {
    margin: 0.25rem 0;
}

.password-rules .valid,
.password-match.valid {
    color: #2d7a35;
}

.password-rules .invalid,
.password-match.invalid {
    color: #9f2f2f;
}

.password-rules .valid::before,
.password-match.valid::before {
    content: "✓ ";
}

.password-rules .invalid::before,
.password-match.invalid::before {
    content: "✗ ";
}

