/* /assets/css/pre-register.php */

.prereg-page {
min-height: calc(100vh - 80px);
padding: 42px 16px;
display: flex;
align-items: center;
background:
radial-gradient(circle at 12% 20%, rgba(22, 163, 74, 0.18), transparent 32%),
radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.18), transparent 30%),
linear-gradient(135deg, #f8fafc, #eef2f7);
}

.prereg-shell {
width: min(1120px, 100%);
margin: 0 auto;
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: 28px;
align-items: center;
}

.prereg-copy {
padding: 20px;
}

.prereg-badge {
display: inline-flex;
align-items: center;
border: 1px solid rgba(22, 163, 74, 0.25);
background: rgba(240, 253, 244, 0.88);
color: #166534;
border-radius: 999px;
padding: 8px 13px;
font-size: 12px;
font-weight: 950;
letter-spacing: 0.16em;
text-transform: uppercase;
margin-bottom: 18px;
}

.prereg-copy h1 {
margin: 0 0 16px;
font-size: clamp(42px, 6vw, 72px);
line-height: 0.96;
letter-spacing: -0.07em;
font-weight: 950;
color: #020617;
}

.prereg-copy p {
margin: 0;
color: #475569;
font-size: 17px;
line-height: 1.8;
max-width: 620px;
}

.prereg-points {
display: grid;
gap: 12px;
margin-top: 28px;
}

.prereg-points div {
background: rgba(255, 255, 255, 0.76);
border: 1px solid rgba(209, 213, 219, 0.9);
border-radius: 20px;
padding: 15px 16px;
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.prereg-points strong {
display: block;
color: #111827;
font-size: 14px;
font-weight: 950;
margin-bottom: 4px;
}

.prereg-points span {
display: block;
color: #64748b;
font-size: 13px;
line-height: 1.55;
}

.prereg-card {
position: relative;
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(209, 213, 219, 0.9);
border-radius: 30px;
padding: 30px;
box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
overflow: hidden;
}

.prereg-card::before {
content: "";
position: absolute;
inset: 0 0 auto 0;
height: 7px;
background: linear-gradient(90deg, #16a34a, #facc15, #ef4444);
}

.prereg-card__top {
margin-bottom: 22px;
}

.prereg-card__top h2 {
margin: 0 0 7px;
color: #020617;
font-size: 30px;
font-weight: 950;
letter-spacing: -0.04em;
}

.prereg-card__top p {
margin: 0;
color: #64748b;
font-size: 14px;
}

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

.prereg-form label {
font-size: 13px;
color: #374151;
font-weight: 850;
margin: 0 0 7px;
}

.prereg-form input,
.prereg-form textarea {
width: 100%;
border: 1px solid #d1d5db;
background: #ffffff;
color: #111827;
border-radius: 15px;
padding: 13px 14px;
font-size: 14px;
outline: none;
margin-bottom: 15px;
}

.prereg-form textarea {
min-height: 110px;
resize: vertical;
}

.prereg-form input:focus,
.prereg-form textarea:focus {
border-color: #f59e0b;
box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.prereg-submit {
width: 100%;
min-height: 48px;
border-radius: 999px;
font-weight: 950;
margin-top: 4px;
}

.prereg-links {
text-align: center;
margin-top: 18px;
}

.prereg-links p {
margin: 0;
color: #64748b;
font-size: 13px;
}

.prereg-links a {
color: #166534;
font-weight: 900;
text-decoration: none;
}

.prereg-links a:hover {
text-decoration: underline;
}

.prereg-card .alert,
.prereg-card .alert--success,
.prereg-card .alert--error {
border-radius: 15px;
padding: 12px 14px;
font-size: 13px;
font-weight: 800;
margin-bottom: 16px;
}

.prereg-card .alert--success {
background: #dcfce7;
border: 1px solid #86efac;
color: #166534;
}

.prereg-card .alert--error {
background: #fee2e2;
border: 1px solid #fecaca;
color: #991b1b;
}

@media (max-width: 900px) {
.prereg-shell {
grid-template-columns: 1fr;
}

.prereg-copy {
text-align: center;
padding: 8px;
}

.prereg-copy p {
margin: 0 auto;
}
}

@media (max-width: 560px) {
.prereg-page {
padding: 24px 12px;
}

.prereg-card {
padding: 24px;
border-radius: 24px;
}

.prereg-copy h1 {
font-size: 42px;
}
}
/* ---------------------------------------------------------
 Night / Dark mode
 Supports: body.dark-mode, body.theme-dark, html[data-theme="dark"]
--------------------------------------------------------- */

body.dark-mode .prereg-page,
body.theme-dark .prereg-page,
html[data-theme="dark"] .prereg-page {
background:
radial-gradient(circle at 12% 20%, rgba(22, 163, 74, 0.22), transparent 32%),
radial-gradient(circle at 88% 12%, rgba(250, 204, 21, 0.16), transparent 30%),
linear-gradient(135deg, #020617, #0f172a);
}

body.dark-mode .prereg-badge,
body.theme-dark .prereg-badge,
html[data-theme="dark"] .prereg-badge {
background: rgba(22, 101, 52, 0.22);
border-color: rgba(74, 222, 128, 0.28);
color: #bbf7d0;
}

body.dark-mode .prereg-copy h1,
body.theme-dark .prereg-copy h1,
html[data-theme="dark"] .prereg-copy h1,
body.dark-mode .prereg-card__top h2,
body.theme-dark .prereg-card__top h2,
html[data-theme="dark"] .prereg-card__top h2,
body.dark-mode .prereg-points strong,
body.theme-dark .prereg-points strong,
html[data-theme="dark"] .prereg-points strong {
color: #f8fafc;
}

body.dark-mode .prereg-copy p,
body.theme-dark .prereg-copy p,
html[data-theme="dark"] .prereg-copy p,
body.dark-mode .prereg-card__top p,
body.theme-dark .prereg-card__top p,
html[data-theme="dark"] .prereg-card__top p,
body.dark-mode .prereg-points span,
body.theme-dark .prereg-points span,
html[data-theme="dark"] .prereg-points span,
body.dark-mode .prereg-links p,
body.theme-dark .prereg-links p,
html[data-theme="dark"] .prereg-links p {
color: #cbd5e1;
}

body.dark-mode .prereg-points div,
body.theme-dark .prereg-points div,
html[data-theme="dark"] .prereg-points div,
body.dark-mode .prereg-card,
body.theme-dark .prereg-card,
html[data-theme="dark"] .prereg-card {
background: rgba(15, 23, 42, 0.92);
border-color: rgba(148, 163, 184, 0.22);
box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

body.dark-mode .prereg-form label,
body.theme-dark .prereg-form label,
html[data-theme="dark"] .prereg-form label {
color: #e5e7eb;
}

body.dark-mode .prereg-form input,
body.theme-dark .prereg-form input,
html[data-theme="dark"] .prereg-form input,
body.dark-mode .prereg-form textarea,
body.theme-dark .prereg-form textarea,
html[data-theme="dark"] .prereg-form textarea {
background: rgba(2, 6, 23, 0.86);
border-color: rgba(148, 163, 184, 0.32);
color: #f8fafc;
}

body.dark-mode .prereg-form input::placeholder,
body.theme-dark .prereg-form input::placeholder,
html[data-theme="dark"] .prereg-form input::placeholder,
body.dark-mode .prereg-form textarea::placeholder,
body.theme-dark .prereg-form textarea::placeholder,
html[data-theme="dark"] .prereg-form textarea::placeholder {
color: #94a3b8;
}

body.dark-mode .prereg-links a,
body.theme-dark .prereg-links a,
html[data-theme="dark"] .prereg-links a {
color: #86efac;
}
.pr-delete-form {
margin: 0;
}

.pr-action-buttons .btn-danger {
background: #dc2626;
border-color: #dc2626;
color: #fff;
}

.pr-action-buttons .btn-danger:hover {
background: #b91c1c;
border-color: #b91c1c;
}
/* Compact action area */
.pr-action-stack {
gap: 7px;
min-width: 0;
max-width: 330px;
}

.pr-action-buttons {
display: flex;
gap: 7px;
align-items: center;
flex-wrap: wrap;
}

.pr-action-stack .btn,
.pr-action-buttons .btn,
.pr-status-form .btn {
width: auto !important;
min-width: 0 !important;
min-height: 32px;
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
line-height: 1.1;
font-weight: 800;
white-space: nowrap;
}

.pr-action-stack > a.btn {
display: inline-flex;
width: fit-content !important;
padding-inline: 14px;
}

.pr-status-form {
display: flex;
gap: 7px;
align-items: center;
}

.pr-status-form select {
width: 170px !important;
min-width: 150px;
min-height: 34px;
padding: 6px 10px;
border-radius: 12px;
font-size: 12px;
}

@media (max-width: 640px) {
.pr-action-buttons {
display: flex;
flex-wrap: wrap;
}

.pr-action-buttons .btn,
.pr-action-stack .btn,
.pr-status-form .btn {
width: auto !important;
}
}