:root {
    color-scheme: dark light;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #050816;
    color: #e2e8f0;
    min-height: 100vh;
}

.register-shell {
    min-height: 100vh;
    background-color: #050816;
    display: flex;
    flex-direction: column;
}

.register-hero,
.register-form-panel {
    background-color: #050816;
}

.register-hero {
    padding: clamp(2.5rem, 7vw, 6rem) clamp(1.75rem, 5vw, 5rem);
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-inner {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background-color: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #f8fafc;
}

.hero-copy p {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 1.25rem;
}

.hero-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.hero-copy li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.hero-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.6rem;
    background-color: rgba(45, 212, 191, 0.18);
    color: #34d399;
    font-size: 0.85rem;
}

.register-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 5vw, 5rem);
}

.register-card {
    width: min(100%, 440px);
    border-radius: 1.5rem;
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 35px 70px rgba(8, 14, 26, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.card-heading h2 {
    font-weight: 700;
}

.card-heading p {
    color: #475569;
}

.form-label {
    font-weight: 600;
    color: #0f172a;
}

.form-control {
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: #f8fafc;
    padding: 0.9rem 1rem;
    color: #0f172a;
}

.form-control:focus {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.input-group .form-control {
    border-right: 0;
}

.input-group .form-control.is-valid {
    border-right: 0;
}

.password-input .password-toggle {
    border-radius: 0.9rem;
    border-left: 0;
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 600;
}

.password-toggle:focus {
    box-shadow: none;
}

.password-toggle-text {
    font-size: 0.9rem;
}

.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.5rem;
}

.field-validation-valid {
    display: none;
}

.register-alert {
    border-radius: 1rem;
    background-color: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.3);
    color: #b91c1c;
    margin-bottom: 1.5rem;
}

.register-alert-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.2rem;
}

.register-submit {
    border-radius: 0.95rem;
    font-weight: 600;
    padding: 0.95rem 1.25rem;
}

.register-links {
    font-size: 0.95rem;
}

.register-links a {
    text-decoration: none;
}

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

@media (min-width: 992px) {
    .register-shell {
        flex-direction: row;
    }

    .register-hero {
        flex: 1.05;
        text-align: left;
        align-items: center;
    }

    .hero-inner {
        align-items: flex-start;
    }

    .hero-copy ul {
        justify-items: start;
    }
}

@media (max-width: 575.98px) {
    .register-card {
        padding: 0;
    }

    .hero-inner {
        gap: 1.5rem;
    }
}
