body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #eef1f4;
    color: #243040;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(36, 48, 64, 0.08);
    width: min(420px, calc(100% - 2rem));
}

h1 {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 1.6rem;
}

p {
    line-height: 1.5;
}

.muted {
    color: #5c6b7a;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.35rem;
    color: #405060;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    padding: 0.65rem 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid #d5dde5;
    border-radius: 6px;
    font-size: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

textarea {
    min-height: 8rem;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"],
.btn {
    background: #2f7d4a;
    color: #fff;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

input[type="submit"]:hover,
.btn:hover {
    background: #27683e;
}

.button-group {
    display: flex;
    gap: 0.75rem;
}

.button-group .btn {
    flex: 1;
}

.alert {
    padding: 0.7rem 0.8rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    text-align: center;
}

.alert-success {
    background: #e5f6ea;
    color: #146c36;
}

.alert-error {
    background: #fdecee;
    color: #9f1239;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.flag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    background: #f4f7f8;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

a {
    color: #1d6b3c;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.actions .btn,
form .btn {
    width: 100%;
    box-sizing: border-box;
}

.score {
    font-size: 3rem;
    text-align: center;
    margin: 0 0 1rem;
    font-variant-numeric: tabular-nums;
}
