@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'SF Pro Display', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f1f3f5;
}

.register-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.register-header p {
    color: #6b7280;
    font-size: 1rem;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color, #FF6600);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

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

.form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #dc2626;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: 'SF Pro Display', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #FF6600);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--primary-color, #FF6600);
}

.form-group small {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary-color, #FF6600);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color, #FF6600);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(90%);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #6b7280;
}

.login-link a {
    color: var(--primary-color, #FF6600);
    text-decoration: none;
    font-weight: 600;
}

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

.cep-loading {
    display: none;
    color: var(--primary-color, #FF6600);
    font-size: 0.85rem;
    margin-top: 4px;
}

.cep-loading.active {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .register-container {
        padding: 25px;
    }

    .form-grid.two-cols {
        grid-template-columns: 1fr;
    }

    .register-header h1 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}
