

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #02416D 0%, #CDD071 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.register-container {
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.6s ease-in-out;
}

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

.register-card {
    background: #F8F8EC;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(2, 65, 109, 0.3);
    border: 3px solid #02416D;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h1 {
    color: #02416D;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.register-header p {
    color: #000000;
    opacity: 0.8;
    font-size: 1rem;
}

/* Success Message */
.success-message {
    background: rgba(205, 208, 113, 0.2);
    color: #02416D;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #CDD071;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* Error Message */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dc3545;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

/* Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #02416D;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid #02416D;
    border-radius: 10px;
    font-size: 1rem;
    background: #FFFFFF;
    color: #000000;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #CDD071;
    box-shadow: 0 0 0 3px rgba(205, 208, 113, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #666;
    opacity: 0.7;
}

/* User Type Styles */
.user-type-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.user-type-option {
    flex: 1;
    text-align: center;
}

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

.user-type-label {
    display: block;
    padding: 1rem;
    border: 2px solid #02416D;
    border-radius: 10px;
    background: #FFFFFF;
    color: #02416D;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-option input[type="radio"]:checked + .user-type-label {
    background: #02416D;
    color: #F8F8EC;
    border-color: #02416D;
}

.user-type-label:hover {
    background: #CDD071;
    color: #02416D;
    transform: translateY(-2px);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-fill.weak {
    background: #dc3545;
    width: 33%;
}

.strength-fill.medium {
    background: #ffc107;
    width: 66%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
}

/* Terms and Conditions */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1rem 0;
}

.terms-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #02416D;
    margin-top: 0.2rem;
}

.terms-group label {
    color: #000000;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.terms-group a {
    color: #02416D;
    text-decoration: none;
    font-weight: 600;
}

.terms-group a:hover {
    color: #CDD071;
    text-decoration: underline;
}

/* Register Button */
.register-btn {
    background: #02416D;
    color: #F8F8EC;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.register-btn:hover {
    background: #CDD071;
    color: #02416D;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 65, 109, 0.3);
}

.register-btn:active {
    transform: translateY(-1px);
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(2, 65, 109, 0.2);
}

.login-link p {
    color: #000000;
    opacity: 0.8;
}

.login-link a {
    color: #02416D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Required field indicator */
.form-group label::after {
    content: " *";
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        max-width: 500px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-type-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 10px;
    }
    
    .register-card {
        padding: 2rem 1.5rem;
    }
    
    .register-header h1 {
        font-size: 1.8rem;
    }
    
    .register-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading state */
.register-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.register-btn:disabled:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

/* Focus states for accessibility */
.register-btn:focus {
    outline: 3px solid rgba(205, 208, 113, 0.5);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
}

/* Custom select arrow */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2302416D' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* CPF mask styling */
input[type="text"][id="cpf"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}