/* Immersive auth - Create Account + Login (dark card on full-bleed photo) */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

body.page-auth-register,
body.page-auth-login,
body.page-auth-profile {
 --auth-reg-font: "IBM Plex Sans", "Segoe UI", sans-serif;
 --auth-reg-card: rgba(22, 28, 40, 0.9);
 --auth-reg-input: rgba(12, 16, 26, 0.78);
 --auth-reg-border: rgba(255, 255, 255, 0.14);
 --auth-reg-muted: rgba(226, 232, 240, 0.7);
 --auth-reg-link: #7dd3fc;
 --auth-reg-blue: #2563eb;
 --auth-reg-blue-hover: #1d4ed8;
 --auth-reg-amber: #e67e22;
 --auth-reg-amber-hover: #d35400;
 --auth-reg-radius: 2px;
 margin: 0;
 min-height: 100vh;
 font-family: var(--auth-reg-font);
 font-weight: 400;
 letter-spacing: 0;
 color: #f1f5f9;
 background: #070b14 !important;
 background-image: none !important;
}

body.page-auth-register .site-header,
body.page-auth-register .site-footer,
body.page-auth-login .site-header,
body.page-auth-login .site-footer,
body.page-auth-profile .site-header,
body.page-auth-profile .site-footer {
 display: none !important;
}

.auth-reg {
 position: relative;
 min-height: 100vh;
 display: grid;
 place-items: center;
 padding: clamp(1.25rem, 4vw, 2.75rem);
 overflow: hidden;
}

.auth-reg__bg {
 position: absolute;
 inset: 0;
 background-color: #0a1220;
 background-image:
 linear-gradient(180deg, rgba(6, 10, 18, 0.35) 0%, rgba(6, 10, 18, 0.55) 45%, rgba(6, 10, 18, 0.72) 100%),
 var(--auth-reg-bg-image, var(--brand-bg-image));
 background-size: cover;
 background-position: center;
 filter: blur(6px);
 transform: scale(1.06);
 z-index: 0;
}

.auth-reg__veil {
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse at 50% 30%, rgba(15, 23, 42, 0.15), rgba(2, 6, 14, 0.55));
 z-index: 1;
}

.auth-reg__card {
 position: relative;
 z-index: 2;
 width: min(640px, 100%);
 background: var(--auth-reg-card);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: var(--auth-reg-radius);
 box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
 padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.4rem, 4vw, 2.25rem) 1.65rem;
}

.auth-reg__card--login {
 width: min(440px, 100%);
}

.auth-reg__brand {
 text-align: center;
 margin-bottom: 1.25rem;
}

.auth-reg__logo {
 width: 88px;
 height: 88px;
 object-fit: contain;
 margin: 0 auto 0.75rem;
 display: block;
}

.auth-reg__title {
 margin: 0;
 font-size: 1.75rem;
 font-weight: 600;
 letter-spacing: 0;
 color: #fff;
 line-height: 1.25;
}

.auth-reg__subtitle {
 margin: 0.35rem 0 0;
 color: var(--auth-reg-muted);
 font-size: 0.95rem;
 font-weight: 400;
}

.auth-reg__section {
 margin: 1.25rem 0 0.75rem;
 font-size: 1rem;
 font-weight: 600;
 color: #fff;
}

.auth-reg__alert {
 margin: 0 0 1rem;
 padding: 0.7rem 0.85rem;
 border-radius: var(--auth-reg-radius);
 background: rgba(185, 28, 28, 0.22);
 border: 1px solid rgba(248, 113, 113, 0.35);
 color: #fecaca;
 font-size: 0.9rem;
 font-weight: 400;
}

.auth-reg__alert--ok {
 background: rgba(21, 128, 61, 0.22);
 border-color: rgba(134, 239, 172, 0.35);
 color: #bbf7d0;
}

.auth-reg__grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 0.9rem 1rem;
}

.auth-reg__field {
 display: flex;
 flex-direction: column;
 gap: 0.3rem;
 min-width: 0;
}

.auth-reg__field--full {
 grid-column: 1 / -1;
}

.auth-reg__field label {
 font-size: 0.875rem;
 font-weight: 500;
 color: rgba(248, 250, 252, 0.9);
}

.auth-reg__field input,
.auth-reg__field select {
 width: 100%;
 border: 1px solid var(--auth-reg-border);
 border-radius: var(--auth-reg-radius);
 background: var(--auth-reg-input);
 color: #f8fafc;
 padding: 0.7rem 0.8rem;
 font: inherit;
 font-size: 0.95rem;
 font-weight: 400;
 outline: none;
 transition: border-color 0.12s ease, background 0.12s ease;
}

.auth-reg__field input::placeholder {
 color: rgba(148, 163, 184, 0.85);
 font-weight: 400;
}

.auth-reg__field input:disabled,
.auth-reg__field input[readonly] {
 opacity: 0.65;
 cursor: not-allowed;
 color: rgba(226, 232, 240, 0.75);
}

.auth-reg__field select {
 appearance: none;
 background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
 linear-gradient(135deg, #94a3b8 50%, transparent 50%);
 background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
 background-size: 5px 5px, 5px 5px;
 background-repeat: no-repeat;
 padding-right: 2rem;
}

.auth-reg__field input:focus,
.auth-reg__field select:focus {
 border-color: rgba(125, 211, 252, 0.55);
 background: rgba(8, 12, 22, 0.92);
 box-shadow: none;
}

.auth-reg__dob {
 display: grid;
 grid-template-columns: 1.15fr 0.85fr;
 gap: 0.5rem;
}

.auth-reg__password {
 position: relative;
}

.auth-reg__password input {
 padding-right: 4.25rem;
}

.auth-reg__show {
 position: absolute;
 right: 0.4rem;
 top: 50%;
 transform: translateY(-50%);
 border: 0;
 background: transparent;
 color: var(--auth-reg-link);
 font: inherit;
 font-size: 0.8rem;
 font-weight: 500;
 cursor: pointer;
 padding: 0.35rem 0.45rem;
}

.auth-reg__show:hover {
 color: #fff;
}

.auth-reg__row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 0.75rem;
 flex-wrap: wrap;
 margin: 0.85rem 0 1.1rem;
 font-size: 0.875rem;
 color: rgba(226, 232, 240, 0.82);
}

.auth-reg__check {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 cursor: pointer;
}

.auth-reg__check input {
 width: 1rem;
 height: 1rem;
 accent-color: var(--auth-reg-blue);
}

.auth-reg__row a {
 color: var(--auth-reg-link);
 font-weight: 500;
 text-decoration: none;
}

.auth-reg__row a:hover {
 text-decoration: underline;
}

.auth-reg__terms {
 display: flex;
 align-items: flex-start;
 gap: 0.6rem;
 margin: 1.1rem 0 1.25rem;
 font-size: 0.875rem;
 line-height: 1.45;
 font-weight: 400;
 color: rgba(226, 232, 240, 0.82);
}

.auth-reg__terms input {
 margin-top: 0.2rem;
 width: 1rem;
 height: 1rem;
 accent-color: var(--auth-reg-blue);
 flex-shrink: 0;
 border-radius: 0;
}

.auth-reg__terms a {
 color: var(--auth-reg-link);
 font-weight: 500;
 text-decoration: none;
}

.auth-reg__terms a:hover {
 text-decoration: underline;
}

.auth-reg__actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.65rem;
}

.auth-reg__actions--stack {
 flex-direction: column;
}

.auth-reg__btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 2.55rem;
 padding: 0.65rem 1.25rem;
 border: 0;
 border-radius: var(--auth-reg-radius);
 font: inherit;
 font-size: 0.95rem;
 font-weight: 600;
 text-decoration: none;
 cursor: pointer;
 transition: background 0.12s ease;
 box-shadow: none;
}

.auth-reg__actions--stack .auth-reg__btn {
 width: 100%;
}

.auth-reg__btn--primary {
 background: var(--auth-reg-blue);
 color: #fff;
}

.auth-reg__btn--primary:hover {
 background: var(--auth-reg-blue-hover);
}

.auth-reg__btn--cancel {
 background: var(--auth-reg-amber);
 color: #fff;
}

.auth-reg__btn--cancel:hover {
 background: var(--auth-reg-amber-hover);
}

.auth-reg__note {
 margin: 1.15rem 0 0;
 text-align: center;
 font-size: 0.85rem;
 font-weight: 400;
 color: rgba(148, 163, 184, 0.95);
 line-height: 1.45;
}

.auth-reg__note a {
 color: var(--auth-reg-link);
 font-weight: 500;
 text-decoration: none;
}

@media (max-width: 640px) {
 .auth-reg__grid {
 grid-template-columns: 1fr;
 }

 .auth-reg__dob {
 grid-template-columns: 1fr 1fr;
 }

 .auth-reg__actions:not(.auth-reg__actions--stack) {
 flex-direction: column;
 }

 .auth-reg__actions:not(.auth-reg__actions--stack) .auth-reg__btn {
 width: 100%;
 }
}
