/**
 * Cadastro Espaço Modal Styles
 * Baseado no design do Figma e estrutura do CadastroUsuarioModal
 * Especificações dos campos: padding horizontal 24px, vertical 18px, altura 56px
 * Modal com 3 passos - Estilos para Passo 1 (Email, Senha, Termos)
 */

/* Backdrop */
.cadastro-espaco-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cadastro-espaco-modal-backdrop.active {
    opacity: 1;
}

/* Modal */
.cadastro-espaco-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Garante que todos os elementos dentro do modal usem Poppins */
.cadastro-espaco-modal * {
    font-family: 'Poppins', sans-serif !important;
}

.cadastro-espaco-modal-backdrop.active .cadastro-espaco-modal {
    transform: scale(1);
}

/* Close Button */
.cadastro-espaco-modal-close {
    position: absolute;
    top: 12px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: color 0.2s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
}

.cadastro-espaco-modal-close:hover {
    color: #666666;
}

.cadastro-espaco-modal-close svg {
    width: 100%;
    height: 100%;
}

/* Header */
.cadastro-espaco-modal-header {
    padding: 40px 40px 0;
    text-align: center;
}

.cadastro-espaco-modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
    margin: 0 0 20px 0;
}

/* Progress Indicator - Stepper Horizontal */
.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.progress-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: transparent;
    width: 100%;
}

.progress-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    white-space: nowrap;
}

.progress-step {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #E0E0E0;
    transition: background-color 0.3s ease;
    cursor: default;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    min-width: 0;
}

.progress-step.active {
    background: #FF7854;
    cursor: default;
}

/* Hover apenas em traços não ativos - garante que apenas o traço mude de cor */
.progress-step:not(.active):hover {
    background: #FF7854 !important;
    transition: background-color 0.2s ease;
}

/* Garante que o container não tenha cor de fundo */
.progress-bar > * {
    background: transparent;
}

.progress-bar > .progress-step {
    background: #E0E0E0;
}

.progress-bar > .progress-step.active {
    background: #FF7854;
}

/* Body */
.cadastro-espaco-modal-body {
    padding: 24px 40px 40px;
}

/* Form */
.cadastro-espaco-form {
    margin-bottom: 20px;
}

/* Container do grupo de inputs */
.form-inputs-group {
    margin-bottom: 20px;
}

.form-inputs-group .form-group {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.form-group {
    margin-bottom: 0;
}

/* Input Fields - Especificações: 56px height, padding 24px horizontal, 18px vertical */
.form-control {
    width: 100%;
    height: 56px;
    padding: 18px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    color: #000000;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Remove border-radius padrão de inputs dentro de grupos */
.form-inputs-group .form-control {
    border-radius: 0 !important;
}

/* Exceção: último campo do passo 2 deve ter bordas inferiores arredondadas */
#cadastroEspacoFormStep2 .form-inputs-group .form-group:last-of-type input.form-control,
#cadastroEspacoTelefone {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Exceção: último campo do passo 3 deve ter bordas inferiores arredondadas */
#cadastroEspacoFormStep3 .form-inputs-group .form-group:last-of-type input.form-control,
#cadastroEspacoWebsite {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Grupo de inputs - colados sem espaço */
.form-inputs-group .form-group:first-of-type {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.form-inputs-group .form-group:first-of-type .form-control {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none !important;
    border-top: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    margin-bottom: 0 !important;
}

/* Campos intermediários (2, 3, 4) */
.form-inputs-group .form-group:nth-of-type(2),
.form-inputs-group .form-group:nth-of-type(3),
.form-inputs-group .form-group:nth-of-type(4) {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.form-inputs-group .form-group:nth-of-type(2) .form-control,
.form-inputs-group .form-group:nth-of-type(3) .form-control,
.form-inputs-group .form-group:nth-of-type(4) .form-control {
    border-radius: 0 !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: none !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Garante que campos intermediários não tenham bordas arredondadas */
#cadastroEspacoSobrenome.form-control,
.form-inputs-group .form-group:nth-of-type(2) #cadastroEspacoSobrenome,
.form-inputs-group .form-group:nth-of-type(3) #cadastroEspacoSobrenome,
.form-inputs-group .form-group:nth-of-type(4) #cadastroEspacoSobrenome {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Último campo */
.form-inputs-group .form-group:last-of-type {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.form-inputs-group .form-group:last-of-type .form-control {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Garante que o border-radius seja aplicado mesmo com password-input-wrapper */
.form-inputs-group .form-group:nth-of-type(2) .password-input-wrapper .form-control {
    border-radius: 0 0 16px 16px !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
}

/* Password Hint */
.password-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    margin: 4px 0 0 0;
    padding-left: 4px;
}

/* Focus - mantém borda contínua */
.form-inputs-group .form-group:first-of-type .form-control:focus {
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
    z-index: 1;
    position: relative;
}

.form-inputs-group .form-group:nth-of-type(2) .form-control:focus,
.form-inputs-group .form-group:nth-of-type(3) .form-control:focus,
.form-inputs-group .form-group:nth-of-type(4) .form-control:focus {
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
    z-index: 1;
    position: relative;
}

/* Garante que campos intermediários mantenham border-radius 0 no focus */
#cadastroEspacoSobrenome.form-control:focus,
.form-inputs-group .form-group:nth-of-type(2) #cadastroEspacoSobrenome:focus,
.form-inputs-group .form-group:nth-of-type(3) #cadastroEspacoSobrenome:focus,
.form-inputs-group .form-group:nth-of-type(4) #cadastroEspacoSobrenome:focus {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.form-inputs-group .form-group:last-of-type .form-control:focus {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
    z-index: 1;
    position: relative;
}

/* Garante que as bordas fiquem corretas no focus mesmo com password-input-wrapper */
.form-inputs-group .form-group:nth-of-type(2) .password-input-wrapper .form-control:focus {
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

/* Hover - mantém borda contínua */
.form-inputs-group .form-group:first-of-type .form-control:hover:not(:disabled):not(:focus) {
    transition: none !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

.form-inputs-group .form-group:nth-of-type(2) .form-control:hover:not(:disabled):not(:focus),
.form-inputs-group .form-group:nth-of-type(3) .form-control:hover:not(:disabled):not(:focus),
.form-inputs-group .form-group:nth-of-type(4) .form-control:hover:not(:disabled):not(:focus) {
    transition: none !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

/* Garante que campos intermediários mantenham border-radius 0 no hover */
#cadastroEspacoSobrenome.form-control:hover:not(:disabled):not(:focus),
.form-inputs-group .form-group:nth-of-type(2) #cadastroEspacoSobrenome:hover:not(:disabled):not(:focus),
.form-inputs-group .form-group:nth-of-type(3) #cadastroEspacoSobrenome:hover:not(:disabled):not(:focus),
.form-inputs-group .form-group:nth-of-type(4) #cadastroEspacoSobrenome:hover:not(:disabled):not(:focus) {
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.form-inputs-group .form-group:last-of-type .form-control:hover:not(:disabled):not(:focus) {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    transition: none !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

/* Regras específicas para o passo 2 - garante que o último campo tenha bordas inferiores arredondadas */
#cadastroEspacoFormStep2 .form-inputs-group .form-group:last-of-type .form-control,
#cadastroEspacoTelefone {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#cadastroEspacoFormStep2 .form-inputs-group .form-group:last-of-type .form-control:focus,
#cadastroEspacoTelefone:focus {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

#cadastroEspacoFormStep2 .form-inputs-group .form-group:last-of-type .form-control:hover:not(:disabled):not(:focus),
#cadastroEspacoTelefone:hover:not(:disabled):not(:focus) {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

/* Regras específicas para o passo 3 - garante que o último campo tenha bordas inferiores arredondadas */
#cadastroEspacoFormStep3 .form-inputs-group .form-group:last-of-type .form-control,
#cadastroEspacoWebsite {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-top: 1px solid #E0E0E0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#cadastroEspacoFormStep3 .form-inputs-group .form-group:last-of-type .form-control:focus,
#cadastroEspacoWebsite:focus {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

#cadastroEspacoFormStep3 .form-inputs-group .form-group:last-of-type .form-control:hover:not(:disabled):not(:focus),
#cadastroEspacoWebsite:hover:not(:disabled):not(:focus) {
    border-radius: 0 0 16px 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

/* Garante que as bordas fiquem corretas no hover mesmo com password-input-wrapper */
.form-inputs-group .form-group:nth-of-type(2) .password-input-wrapper .form-control:hover:not(:disabled):not(:focus) {
    transition: none !important;
    border-color: #FF7854 !important;
    border-top: 1px solid #FF7854 !important;
    border-bottom: 1px solid #FF7854 !important;
    border-left: 1px solid #FF7854 !important;
    border-right: 1px solid #FF7854 !important;
}

.form-control:focus {
    outline: none;
    border-color: #FF7854;
    box-shadow: 0 0 0 3px rgba(255, 120, 84, 0.1);
}

.form-control:hover:not(:disabled):not(:focus) {
    border-color: #FF7854;
}

/* Sobrescreve regra geral para inputs agrupados - evita delay/preto */
.form-inputs-group .form-control:hover:not(:disabled):not(:focus) {
    transition: none;
}

.form-control::placeholder {
    color: #999999;
}

.form-control:disabled {
    background: #F5F5F5;
    border-color: #E0E0E0;
    color: #999999;
    cursor: not-allowed;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #000000;
}

.password-input-wrapper .form-control {
    padding-right: 56px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.eye-off-icon {
    display: none !important;
}

.password-toggle.active .eye-icon {
    display: none !important;
}

.password-toggle.active .eye-off-icon {
    display: block !important;
}

/* Form Errors Container */
.form-errors-container {
    margin-top: 8px;
    min-height: 20px;
    width: 100%;
    text-align: left !important;
}

.form-errors-container .form-error {
    display: block !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

/* Form Errors */
.form-error {
    display: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #FF3B30 !important;
    padding: 0 !important;
    padding-left: 4px !important;
    margin: 0 !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    text-align: left !important;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    cursor: pointer;
    accent-color: #FF7854;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #E0E0E0;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #FF7854;
    border-color: #FF7854;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: #FF7854;
}

.checkbox-label span {
    flex: 1;
    color: #666666 !important;
}

/* Links dentro do checkbox */
.checkbox-label span .terms-link {
    color: inherit !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
    text-decoration-color: inherit !important;
    transition: opacity 0.2s ease;
}

.checkbox-label span .terms-link:hover {
    color: inherit !important;
    text-decoration-color: inherit !important;
    opacity: 0.7;
}

/* Form Navigation (Botões Voltar e Continuar) */
.form-navigation {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 24px;
    justify-content: space-between;
    align-items: center;
}

.btn-voltar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 56px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #FF7854;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.btn-voltar:hover {
    color: #E66A4A;
}

.btn-voltar:active {
    transform: scale(0.98);
}

.btn-voltar svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    cursor: pointer;
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666666;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.select-wrapper select:focus + .select-arrow,
.select-wrapper:hover .select-arrow {
    color: #FF7854;
}

/* Primary Button */
.btn-cadastro-primary {
    width: 100%;
    height: 56px;
    padding: 0 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #FFFFFF;
    background: #FF7854;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Botão Continuar no passo 2 (menor) */
.form-navigation .btn-cadastro-primary {
    flex: 0 0 auto;
    width: auto;
    min-width: 160px;
    max-width: 200px;
}

.btn-cadastro-primary:hover:not(:disabled) {
    background: #E66A4A;
}

.btn-cadastro-primary:active:not(:disabled),
.btn-cadastro-primary:focus:not(:disabled) {
    background: #E66A4A !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 120, 84, 0.2);
    transform: scale(0.98);
}

.btn-cadastro-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

.btn-loader .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Separator */
.cadastro-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: #E0E0E0;
}

.separator-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
    color: #000000;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-social:hover {
    border-color: #FF7854;
    background: #FFF5F3;
}

.btn-social:active,
.btn-social:focus {
    border-color: #FF7854 !important;
    background: #FFF5F3 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 120, 84, 0.1);
}

.btn-social:active {
    transform: scale(0.98);
}

.social-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Apple Icon - Um pouco maior */
.btn-apple .social-icon {
    width: 26px;
    height: 26px;
}

/* Google Icon Colors */
.btn-google .social-icon path:nth-child(1) { fill: #4285F4; }
.btn-google .social-icon path:nth-child(2) { fill: #34A853; }
.btn-google .social-icon path:nth-child(3) { fill: #FBBC05; }
.btn-google .social-icon path:nth-child(4) { fill: #EA4335; }

/* Facebook Icon Color */
.btn-facebook .social-icon {
    color: #1877F2;
}

/* Email Icon Color */
.btn-email .social-icon {
    color: #666666;
}

/* Login Link Container */
.login-link-container {
    text-align: center;
    margin-top: 8px;
}

.login-link-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 400;
    color: #000000;
    margin: 0 0 8px 0;
}

.login-link {
    font-family: 'Poppins', sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    color: #FF7854 !important;
    text-decoration: underline;
    text-decoration-color: #FF7854 !important;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #E66A4A !important;
    text-decoration-color: #E66A4A !important;
}

/* Responsive */

/* Telas médias (14/15 polegadas - 1366px a 1600px) */
@media (min-width: 1366px) and (max-width: 1600px) {
    .cadastro-espaco-modal {
        max-width: 540px;
        max-height: 98vh;
        overflow-y: auto;
    }

    .cadastro-espaco-modal-close {
        top: 10px;
    }

    .cadastro-espaco-modal-header {
        padding: 24px 32px 8px;
    }

    .cadastro-espaco-modal-body {
        padding: 16px 32px 24px;
    }

    .cadastro-espaco-modal-title {
        font-size: 22px;
    }

    .form-control {
        height: 48px;
        padding: 14px 18px;
    }

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

    .form-error {
        font-size: 11px;
    }

    .btn-cadastro-primary {
        margin-bottom: 12px;
        height: 48px;
        font-size: 15px;
    }

    .cadastro-separator {
        margin: 16px 0;
    }

    .separator-text {
        font-size: 13px;
    }

    .social-login {
        gap: 8px;
        margin-bottom: 16px;
    }

    .btn-social {
        height: 48px;
        font-size: 15px;
        padding: 0 14px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .btn-apple .social-icon {
        width: 22px;
        height: 22px;
    }

    .login-link-text,
    .login-link {
        font-size: 13px;
    }
}

/* Tablets grandes e telas médias (1024px - 1365px) */
@media (max-width: 1024px) {
    .cadastro-espaco-modal {
        max-width: 90%;
        max-height: 92vh;
    }

    .cadastro-espaco-modal-header {
        padding: 36px 32px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 24px 32px 36px;
    }
}

/* Tablets (768px - 600px) */
@media (max-width: 768px) {
    .cadastro-espaco-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .cadastro-espaco-modal {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }

    .cadastro-espaco-modal-header {
        padding: 32px 24px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 24px 24px 32px;
    }

    .cadastro-espaco-modal-title {
        font-size: 22px;
    }

    .cadastro-espaco-modal-close {
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
    }

    .form-control {
        height: 52px;
        padding: 16px 20px;
        font-size: 16px;
    }

    .btn-cadastro-primary {
        height: 52px;
        font-size: 16px;
    }

    .btn-social {
        height: 52px;
        font-size: 16px;
    }
}

/* Smartphones grandes (600px - 480px) */
@media (max-width: 600px) {
    .cadastro-espaco-modal-header {
        padding: 28px 20px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 20px 20px 28px;
    }

    .cadastro-espaco-modal-title {
        font-size: 20px;
    }

    .form-control {
        height: 50px;
        padding: 15px 18px;
    }

    .btn-cadastro-primary {
        height: 50px;
    }

    .btn-social {
        height: 50px;
    }
}

/* Smartphones (480px - 360px) */
@media (max-width: 480px) {
    .cadastro-espaco-modal-header {
        padding: 24px 16px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 20px 16px 24px;
    }

    .cadastro-espaco-modal-title {
        font-size: 20px;
    }

    .cadastro-espaco-modal-close {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
    }

    .form-control {
        font-size: 16px;
        height: 48px;
        padding: 14px 16px;
    }

    .btn-cadastro-primary {
        height: 48px;
        font-size: 16px;
    }

    .btn-social {
        height: 48px;
        font-size: 14px;
        padding: 0 12px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .btn-apple .social-icon {
        width: 22px;
        height: 22px;
    }
}

/* Smartphones pequenos (360px e abaixo) */
@media (max-width: 360px) {
    .cadastro-espaco-modal-header {
        padding: 20px 12px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 16px 12px 20px;
    }

    .cadastro-espaco-modal-title {
        font-size: 18px;
    }

    .form-control {
        height: 44px;
        padding: 12px 14px;
        font-size: 16px;
    }

    .btn-cadastro-primary {
        height: 44px;
        font-size: 14px;
    }

    .btn-social {
        height: 44px;
        font-size: 13px;
        padding: 0 10px;
        gap: 10px;
    }

    .separator-text {
        font-size: 12px;
    }
}

/* Telas muito pequenas (320px e abaixo) */
@media (max-width: 320px) {
    .cadastro-espaco-modal-title {
        font-size: 16px;
    }

    .form-control {
        height: 42px;
        padding: 11px 12px;
    }

    .btn-cadastro-primary {
        height: 42px;
        font-size: 13px;
    }

    .btn-social {
        height: 42px;
        font-size: 12px;
    }
}

/* Altura pequena (landscape em mobile) */
@media (max-height: 600px) and (max-width: 768px) {
    .cadastro-espaco-modal {
        max-height: 95vh;
    }

    .cadastro-espaco-modal-header {
        padding: 20px 24px 0;
    }

    .cadastro-espaco-modal-body {
        padding: 16px 24px 20px;
    }

    .cadastro-espaco-modal-title {
        font-size: 20px;
    }

    .form-control {
        height: 48px;
        padding: 14px 18px;
    }

    .btn-cadastro-primary {
        height: 48px;
    }

    .btn-social {
        height: 48px;
    }

    .cadastro-separator {
        margin: 16px 0;
    }
}

/* Garante que o SweetAlert2 apareça acima do modal de cadastro */
.swal2-container-custom,
.swal2-container {
    z-index: 11000 !important;
}

