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

html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #e0e7ff;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 40px 20px;
}

.bg-shape-1 {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #3b82f6, #102A43);
    border-radius: 50%;
    opacity: 0.08;
}

.bg-shape-2 {
    position: fixed;
    bottom: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #102A43, #3b82f6);
    border-radius: 50%;
    opacity: 0.06;
}

.register-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: auto 0;
}

.register-logo {
    text-align: center;
    margin-bottom: 24px;
}

.register-logo img {
    max-height: 60px;
    width: auto;
}

.register-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #102A43;
    margin-bottom: 8px;
}

.register-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #627D98;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334E68;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #BCCCDC;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: #102A43;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #486581;
}

.terms input[type="checkbox"] {
    margin-top: 3px;
}

.terms a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.terms a:hover {
    text-decoration: underline;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background-color: #102A43;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn-register:hover {
    background-color: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #D9E2EC;
}

.divider span {
    font-size: 0.85rem;
    color: #829AB1;
}

.login-link {
    text-align: center;
    font-size: 0.95rem;
    color: #486581;
}

.login-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

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

.error-message, .success-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

.error-message {
    background-color: #FEE2E2;
    color: #991B1B;
}

.success-message {
    background-color: #D1FAE5;
    color: #065F46;
}

@media (max-width: 520px) {
    body { padding: 20px 16px; }
    .register-card { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}