* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    color: #0f172a;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    margin-bottom: 28px;
}

.top-brand h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.top-brand p {
    margin: 4px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.4;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.register-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    min-height: 640px;
}

.register-left {
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    padding: 36px;
    display: flex;
    align-items: stretch;
}

.register-right {
    padding: 36px;
    background: #ffffff;
}

.hero-box {
    width: 100%;
}

.hero-box h2 {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.15;
    color: #0f172a;
}

.hero-box p {
    margin: 0 0 18px;
    color: #334155;
    line-height: 1.6;
    font-size: 16px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
}

.hero-list {
    margin: 22px 0 0;
    padding-left: 18px;
    color: #1e293b;
    line-height: 1.8;
    font-size: 16px;
}

.register-right h3 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.alert-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 14px;
    line-height: 1.5;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    width: 100%;
}

.form-row label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.4;
}

.form-row input,
.form-row select {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input {
    min-height: 48px;
}

.form-row select {
    min-height: 48px;
    appearance: auto;
}

.form-row input::placeholder {
    color: #64748b;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-help {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.two-cols > div,
.three-cols > div {
    min-width: 0;
}

.three-cols select {
    width: 100%;
}

.avatar-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.avatar-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.avatar-choice:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.avatar-choice input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.avatar-choice span {
    font-weight: bold;
    color: #1e293b;
    line-height: 1.4;
}

.checkbox-row {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.submit-row {
    margin-top: 6px;
}

.btn-primary {
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 12px 24px rgba(37, 99, 235, 0.24);
}

.register-links {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

.register-links a {
    color: #2f6df6;
    text-decoration: none;
}

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

.register-links .sep {
    margin: 0 6px;
    color: #888;
}

@media (max-width: 900px) {
    .page-shell {
        padding: 24px 16px 32px;
    }

    .register-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .two-cols,
    .three-cols,
    .avatar-options {
        grid-template-columns: 1fr;
    }

    .register-left,
    .register-right {
        padding: 24px;
    }

    .hero-box h2 {
        font-size: 28px;
    }

    .register-right h3 {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .top-brand {
        align-items: flex-start;
    }

    .top-brand h1 {
        font-size: 28px;
    }

    .top-brand p {
        font-size: 15px;
    }

    .brand-mark {
        width: 56px;
        height: 56px;
        font-size: 20px;
        border-radius: 16px;
    }

    .register-left,
    .register-right {
        padding: 20px;
    }

    .hero-box h2 {
        font-size: 24px;
    }

    .hero-box p,
    .hero-list {
        font-size: 15px;
    }

    .register-right h3 {
        font-size: 24px;
    }
}
