*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0a1628;
    --blue: #1a6fff;
    --blue-light: #4d8fff;
    --gray: #8a9ab5;
    --gray-light: #e8ecf2;
    --off-white: #f5f7fa;
    --red: #e74c3c;
    --green: #28c940;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.register-wrapper {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(10, 22, 40, 0.14), 0 0 0 1px rgba(10, 22, 40, 0.05);
}

/* LEFT PANEL */
.register-brand {
    background: var(--navy);
    flex: 1;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.register-brand::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(26, 111, 255, 0.2) 0%, transparent 70%);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-mark {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.02em;
}

.brand-copy {
    position: relative;
}

.brand-headline {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.brand-headline strong {
    font-weight: 600;
    color: #fff;
}

.brand-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.brand-plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.brand-plan-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-light);
    flex-shrink: 0;
}

.brand-plan-item strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* RIGHT PANEL */
.register-form-panel {
    background: #fff;
    flex: 1;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.register-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.register-subtitle {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 32px;
}

/* ACCOUNT TYPE SELECTOR */
.account-type-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 10px;
}

.account-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.account-type-card {
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--off-white);
}

.account-type-card:hover {
    border-color: var(--blue);
}

.account-type-card.selected {
    border-color: var(--blue);
    background: rgba(26, 111, 255, 0.04);
}

.account-type-icon {
    width: 34px;
    height: 34px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-type-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: white;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-type-info {
    flex: 1;
}

.account-type-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.account-type-desc {
    font-size: 0.74rem;
    color: var(--gray);
    line-height: 1.4;
}

.account-type-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    margin-top: 4px;
}

/* FORM FIELDS */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.fields-grid .input-group.full {
    grid-column: 1 / -1;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--navy);
    background: var(--off-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 111, 255, 0.1);
}

/* Company field — hidden by default */
.company-field {
    display: none;
}

.company-field.visible {
    display: block;
}

.submit-btn {
    width: 100%;
    background: var(--navy);
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover {
    background: var(--blue);
    transform: translateY(-1px);
}

.error-message {
    color: var(--red);
    font-size: 0.82rem;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message.show {
    opacity: 1;
}

.login-link {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 20px;
    text-align: center;
}

.login-link a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--navy);
}

.legal-links {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.legal-links a {
    color: var(--blue);
    text-decoration: none;
}

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

@media (max-width: 640px) {
    .register-brand {
        display: none;
    }

    .register-wrapper {
        max-width: 460px;
    }

    .register-form-panel {
        padding: 36px 28px;
    }

    .fields-grid {
        grid-template-columns: 1fr;
    }

    .fields-grid .input-group.full {
        grid-column: 1;
    }
}