/* Register Page */
.register-page {
    max-width: 560px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Hero */
.register-hero {
    position: relative;
    text-align: center;
    padding: 56px 20px 48px;
    color: white;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}
.register-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-dark) 0%, #302b63 50%, #24243e 100%);
    z-index: 0;
}
.register-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(102, 126, 234, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 60%);
    z-index: 1;
}
.register-hero-content {
    position: relative;
    z-index: 2;
}
.register-hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.register-hero-content p {
    font-size: 1.05rem;
    opacity: 0.75;
}
@media (max-width: 768px) {
    .register-hero { padding: 40px 20px 36px; }
    .register-hero-content h1 { font-size: 1.6rem; }
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-body {
    padding: 24px 32px 40px;
}

/* Profile Type Selector */
.profile-type-selector {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input[type="radio"] {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
}

.type-option input[type="radio"]:checked + .type-card {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #f0f2ff 0%, #fafafa 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.type-option:hover .type-card {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.type-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.type-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.type-desc {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.3;
    display: none;
}

@media (min-width: 480px) {
    .type-desc {
        display: block;
    }
}

/* Company Fields */
.company-fields {
    background: #f8f9ff;
    border: 1px solid #e8eaff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-fields .form-group {
    margin-bottom: 16px;
}

.company-fields .form-group:last-child {
    margin-bottom: 0;
}

/* Form Row (side by side fields) */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Full-width button */
.btn-full {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 6px;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #888;
}

.password-requirements li {
    margin-bottom: 2px;
}

/* Responsive */
@media (max-width: 480px) {
    .register-page {
        margin: 20px auto;
    }
    
    .profile-type-selector {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* City Autocomplete */
.autocomplete-wrapper { position: relative; }
.autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 4px;
}
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: #f5f5f5; }
.autocomplete-item.empty-result {
    color: #999; font-style: italic; cursor: default;
    text-align: center; pointer-events: none;
}
.autocomplete-item.empty-result:hover { background: transparent; }
.autocomplete-loader { display: none; padding: 16px; justify-content: center; align-items: center; }
.autocomplete-loader.active { display: flex; }
.loader-spinner {
    width: 20px; height: 20px; border: 2px solid #e5e7eb;
    border-top: 2px solid var(--brand-primary); border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
