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

:root {
    --bg-from: #170f45;
    --bg-mid: #5a1a72;
    --bg-to: #c21279;
    --pink: #e6007e;
    --pink-dark: #a4005a;
    --pink-light: #ff8fc7;
    --card: rgba(8, 4, 28, 0.72);
    --card-border: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --text-dim: #d8d2f2;
    --error-bg: #4a1327;
    --error-fg: #ffb3d1;
    --ok-bg: #123a2c;
    --ok-fg: #9dffd6;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 112.5%;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-mid) 55%, var(--bg-to) 100%) fixed;
    min-height: 100vh;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.container-narrow {
    max-width: 380px;
}

.page-header {
    margin-bottom: 1.5rem;
}

.club-logo {
    display: block;
    height: 64px;
    width: auto;
    margin-bottom: 0.75rem;
}

.eyebrow {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--pink-light);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.75rem;
}

h1 {
    font-family: "Fredoka", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 2rem 0 0.75rem;
}

.hint {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

form {
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

label {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.85rem;
    color: var(--text);
}

input[type="text"],
input[type="password"],
textarea {
    padding: 0.75rem 0.85rem;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    width: 100%;
    min-height: 3rem;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: 3px solid var(--pink-light);
    outline-offset: 1px;
    border-color: var(--pink-light);
}

fieldset {
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 0.85rem 1rem 1rem;
    margin-top: 0.85rem;
}

legend {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0 0.4rem;
    color: #ffffff;
}

.shift-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding: 0.85rem 0.65rem;
    min-height: 3.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 400;
    cursor: pointer;
}

.shift-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--card-border);
}

.shift-option:has(input:checked) {
    background: rgba(230, 0, 126, 0.22);
    border-color: var(--pink-light);
}

.shift-option input {
    accent-color: var(--pink-light);
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

.day-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-family: "Fredoka", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: var(--pink-dark);
    white-space: nowrap;
}

.shift-info {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shift-title {
    font-weight: 700;
    font-size: 1.08rem;
    color: #ffffff;
}

.shift-time {
    font-size: 0.98rem;
    color: var(--text-dim);
}

.capacity {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: #b9ffd9;
    white-space: nowrap;
    text-align: right;
}

.shift-option.is-full {
    cursor: not-allowed;
}

.shift-option.is-full .shift-title,
.shift-option.is-full .shift-time {
    color: var(--text-dim);
}

.shift-option.is-full .capacity {
    color: #ffb3d1;
}

.shift-option.is-full .day-badge {
    background: #4a4460;
}

button,
.btn {
    margin-top: 1.25rem;
    padding: 0.85rem 1.4rem;
    min-height: 3rem;
    background: linear-gradient(135deg, var(--pink) 0%, #9a1fb8 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button:hover,
.btn:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--pink-light);
    box-shadow: none;
}

a {
    color: var(--pink-light);
    font-weight: 600;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 179, 209, 0.5);
    font-size: 1.02rem;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-fg);
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-header .btn {
    margin-top: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

.table td {
    color: #ffffff;
}

.table th {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
}

.table tr:last-child td {
    border-bottom: none;
}
