* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1565c0 50%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.register-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem 0;
}

.register-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.register-header {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; }

.header-text h5 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.header-text span {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
}

.register-body { padding: 1.75rem 1.5rem 1.5rem; }

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 4px;
}

.section-sub {
    font-size: 0.78rem;
    color: #607d8b;
    margin-bottom: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    font-size: 0.7rem;
    color: #90a4ae;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group { margin-bottom: 1rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.required-star { color: #e53e3e; margin-left: 2px; }

.form-input, .form-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e0e8f5;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f5f8ff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-input:focus, .form-select:focus {
    border-color: #1565c0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.form-input::placeholder { color: #b0bec5; font-size: 0.8rem; }

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #90a4ae;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

.form-input.has-icon { padding-right: 2.5rem; }

.password-strength {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e0e8f5;
    transition: background 0.3s;
}

.strength-label {
    font-size: 0.68rem;
    color: #90a4ae;
    min-width: 40px;
    text-align: right;
}

.btn-register {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

.btn-register:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-register:active { transform: scale(0.98); }

.signin-link {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.78rem;
    color: #607d8b;
}

.signin-link a {
    color: #1565c0;
    font-weight: 600;
    text-decoration: none;
}

.signin-link a:hover { text-decoration: underline; }

.alert-box {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.alert-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.login-note {
    text-align: center;
    font-size: 0.68rem;
    color: #90a4ae;
    margin-top: 1rem;
    line-height: 1.6;
}

.login-note strong { color: #1565c0; }

@media (max-width: 520px) {
    body { padding: 0.5rem; align-items: flex-start; }
    .register-card { border-radius: 14px; max-width: 100%; }
    .register-body { padding: 1.25rem 1.1rem 1.1rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
}