html {
    height: 100%;
}
body.idsmart-register-theme {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a192f;
    color: #f3f4f6;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
.reg-hero {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a192f;
}
.reg-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.reg-hero-slide.active { opacity: 1; }
.reg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.62) 55%, rgba(220, 38, 38, 0.28) 100%);
}
.reg-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
}
.reg-card {
    background: rgba(10, 25, 47, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 14px 10px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
}
.reg-brand {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
}
.reg-brand span {
    display: block;
    margin-top: 4px;
    color: #ef4444;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}
.reg-kicker {
    margin: 0;
    text-align: center;
    font-weight: 700;
}
.reg-sub {
    margin: 2px 0 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.35;
}
.reg-alert {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.reg-alert.error {
    background: #fef2f2;
    color: #991b1b;
}
.reg-alert.success {
    background: #f0fdf4;
    color: #166534;
}
.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.reg-field { margin-bottom: 6px; }
.reg-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}
.reg-field input,
.reg-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 0.92rem;
}
.reg-field input:focus,
.reg-field select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}
.reg-submit {
    width: 100%;
    margin-top: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 50px;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.reg-submit:hover { background: #b91c1c; }
.reg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.reg-footer a.reg-back {
    color: #fca5a5;
    font-weight: 700;
    text-decoration: none;
}
.reg-lang {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.reg-lang a {
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.reg-lang a.active {
    background: #dc2626;
    color: #fff;
}
@media (max-width: 420px) {
    .reg-grid { grid-template-columns: 1fr; }
}
