/**
 * ESTILO REGISTRO - VERSÃO GOLD V52.0
 * Ajuste Final: Olho Mágico Flutuante e Circular
 */

/* --- ESTRUTURA GERAL --- */
.layout-registro {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.wrapper-registro {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- LOGO --- */
.registro-logo-area {
    text-align: center;
    margin-bottom: 20px;
}

.registro-logo-area img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.registro-logo-area h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* --- CARD PRINCIPAL --- */
.registro-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.registro-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.registro-header h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.registro-header p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

/* --- GRID SYSTEM (12 Colunas) --- */
.registro-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: end;
}

/* PROPORÇÕES EXATAS */
.col-12 { grid-column: span 12; } /* 100% */
.col-9  { grid-column: span 9; }  /* 75% */
.col-6  { grid-column: span 6; }  /* 50% */
.col-4  { grid-column: span 4; }  /* 33.3% */
.col-3  { grid-column: span 3; }  /* 25% */

/* --- INPUTS & FORMULÁRIO --- */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
    width: 100%;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-box { 
    position: relative; 
    width: 100%; 
    display: block;
}

/* Estilo padrão para inputs normais */
.form-control {
    width: 100%;
    height: 42px;
    padding-left: 38px; /* Espaço para ícone esquerdo */
    padding-right: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fdfdfd;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #ff9f43;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.1);
}

/* Garante espaço extra para o olho não ficar em cima do texto */
.password-field {
    padding-right: 50px !important;
}

/* Ícone Esquerdo (User, Map, etc) */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    pointer-events: none;
    z-index: 5;
}

/* --- OLHO MÁGICO (AJUSTE FINO: FLUTUANTE) --- */
.toggle-pass {
    position: absolute;
    right: 8px; /* Afastado da borda direita (não toca nela) */
    top: 50%;   /* Centralizado verticalmente */
    transform: translateY(-50%); /* Ajuste fino do centro */
    
    width: 32px; /* Tamanho discreto */
    height: 32px;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    cursor: pointer;
    color: #ff9f43;
    z-index: 10;
    background-color: transparent; /* Fundo transparente */
    border-radius: 50%; /* Redondinho */
    
    line-height: 1 !important; 
    font-size: 16px; 
    margin: 0;
    padding: 0;
    transition: all 0.2s;
}

.toggle-pass:hover {
    background-color: #fff0e6; /* Círculo de hover */
    color: #d35400;
}

/* --- TOM SELECT (CORREÇÃO DE CONFLITO) --- */
.ts-wrapper.form-control {
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ts-control {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    padding: 0 15px 0 38px !important;
    display: flex !important;
    align-items: center !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background-color: #fdfdfd;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.ts-wrapper.focus .ts-control {
    border-color: #ff9f43 !important;
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.15) !important;
    background-color: #fff;
}

.ts-dropdown {
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #ff9f43;
    z-index: 100;
    margin-top: 5px;
}

.input-box:has(.ts-wrapper) .input-icon {
    z-index: 20; 
}

/* --- BOX DE TAXA --- */
.taxa-box {
    width: 100%;
    height: 42px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #27ae60;
    font-size: 15px;
    box-sizing: border-box;
}

/* --- BOTÕES --- */
.actions-row {
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-submit {
    background: linear-gradient(135deg, #ff9f43 0%, #ee5253 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 40px;
    height: 45px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-submit:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(238, 82, 83, 0.3); 
}

.btn-back {
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 25px;
    height: 45px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-back:hover { 
    background: #f5f5f5; 
    border-color: #ccc; 
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .layout-registro { padding: 20px 10px; }
    .registro-card { padding: 25px; }
    
    .registro-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .col-12, .col-9, .col-6, .col-4, .col-3 { 
        grid-column: span 1; 
    }
    
    .actions-row { 
        flex-direction: column-reverse; 
        gap: 10px; 
    }
    
    .btn-submit, .btn-back { 
        width: 100%; 
        justify-content: center; 
    }
}