/* CSS Específico para Página de Login */

/* Reset específico para login */
.login-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Container de Login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Card de Login */
.login-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.35s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Header do Login */
.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    width: 60px;
    height: 60px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-header p {
    color: #475569;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Formulário de Login */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.15s ease-in-out;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.input-group input::placeholder {
    color: #94a3b8;
}

/* Botão de mostrar/ocultar senha */
.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    z-index: 5;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #374151;
}

/* Botão de Login */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-full {
    width: 100%;
}

/* Footer do Login */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

.login-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsividade para Login */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem;
        max-width: none;
    }
    
    .login-header h1 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Estilos para formulário de cadastro expandido */
#register-page .login-card {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Para campos que devem ocupar toda a largura */
.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Responsividade para formulário de cadastro */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #register-page .login-card {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #register-page .login-card {
        max-width: none;
        margin: 0.5rem;
        padding: 1rem;
    }
    
    /* Responsividade para modal do regulamento */
    #modal-regulamento .modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .logo-circle {
        width: 100px;
        height: 100px;
    }
    
    .chameleon-body {
        width: 50px;
        height: 35px;
    }
    
    .regulamento-title {
        font-size: 1.2rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .regulamento-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Estilos para autocomplete de lojas */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease-in-out;
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item .loja-nome {
    font-weight: 500;
    color: #0f172a;
}

.suggestion-item .loja-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Estilos para sugestões de vendedor */
.suggestion-item .vendedor-nome {
    font-weight: 500;
    color: #0f172a;
}

.suggestion-item .vendedor-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Estilos para checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #2563eb;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #0f172a;
}

/* Posicionamento relativo para o campo de loja */
.form-group {
    position: relative;
}

/* Estilos para links externos */
.link-externo {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}


/* Estilos para o modal do regulamento */
#modal-regulamento {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#modal-regulamento .modal-content {
    max-width: 800px;
    max-height: 85vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.regulamento-content {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 1rem;
    text-align: center;
}

/* Logo do Clube Baratão */
.logo-clube-baratao {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    padding: 8px;
    margin: 0 auto;
    position: relative;
}

.chameleon-logo {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chameleon-body {
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A, #FF9800, #FF5722, #9C27B0, #2196F3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    margin-bottom: 8px;
}

.chameleon-body::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.chameleon-body::after {
    content: '';
    position: absolute;
    top: -5px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.chameleon-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.text-clube {
    color: #2196F3;
    margin-bottom: 2px;
}

.text-baratao {
    color: #4CAF50;
}

/* Título do regulamento */
.regulamento-title {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Texto do regulamento */
.regulamento-text {
    text-align: left;
    max-width: 100%;
}

.regulamento-text p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.regulamento-text p strong {
    color: #0f172a;
    font-weight: 600;
}

.regulamento-text p:last-child {
    margin-bottom: 0;
}

/* Estilos para elementos select */
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #ffffff;
    color: #0f172a;
    transition: all 0.15s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group select:hover {
    border-color: #9ca3af;
}

.input-group select:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Estilo para opções do select */
.input-group select option {
    padding: 0.5rem;
    background-color: #ffffff;
    color: #0f172a;
}

.input-group select option:hover {
    background-color: #f3f4f6;
} 

/* Regulamento Slide Down */
.regulamento-slide {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.regulamento-slide.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 800px;
        transform: translateY(0);
    }
}

.regulamento-inner {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* Logo do Clube Baratão */
.logo-clube-baratao {
    text-align: center;
    margin-bottom: 20px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.chameleon-logo {
    position: relative;
    width: 45px;
    height: 45px;
}

.chameleon-body {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23fff"/></svg>') center/contain no-repeat;
}

.chameleon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 6px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.text-clube {
    display: block;
    color: #ff6b35;
}

.text-baratao {
    display: block;
    color: #f7931e;
}

.regulamento-title {
    text-align: center;
    color: #333;
    font-size: 1.4rem;
    margin: 15px 0;
    font-weight: bold;
}

.regulamento-text {
    line-height: 1.5;
    color: #555;
    font-size: 0.9rem;
}

.regulamento-text p {
    margin-bottom: 12px;
    text-align: justify;
}

.regulamento-text strong {
    color: #333;
}

.regulamento-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.regulamento-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Checkbox desabilitado */
.checkbox-group input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-group input[type="checkbox"]:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkbox-group input[type="checkbox"]:disabled:checked {
    opacity: 0.8;
}

/* Texto de ajuda do regulamento */
.texto-ajuda {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 8px;
    font-style: italic;
} 