/* Arquivo: assessores.css */
/* Estilos para o sistema de assessores mobile */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    min-height: calc(100vh - 20px);
}

.header {
    background: linear-gradient(45deg, #084F8C, #0066cc);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.header p {
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.content {
    padding: 30px 20px;
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #084F8C;
    background: white;
    box-shadow: 0 0 0 3px rgba(8, 79, 140, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #084F8C, #0066cc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}


.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #084F8C, #0066cc);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    margin-top: 15px;
}

.error {
    background: linear-gradient(135deg, #f8d7da, #f1c2c7);
    color: #721c24;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.success {
    background: linear-gradient(135deg, #d4edda, #c8e6c9);
    color: #155724;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.user-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #90caf9;
}

.user-info strong {
    color: #084F8C;
    font-size: 18px;
}

/* Melhorias específicas para mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .header {
        padding: 50px 20px 35px;
    }
    
    .content {
        padding: 25px 20px 40px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 18px 16px;
        font-size: 16px;
    }
    
    .btn {
        padding: 20px;
        font-size: 18px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .content {
        padding: 20px 15px 30px;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Melhor experiência de toque */
.btn, .form-group input, .form-group select, .form-group textarea {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Estilos para seções do formulário */
.section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    margin: 25px -20px 20px;
    border-left: 4px solid #084F8C;
}

.section-header h3 {
    color: #084F8C;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Estilos para upload de arquivo */
.file-input {
    border: 2px dashed #e1e8ed !important;
    background: #fafbfc !important;
    padding: 20px !important;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #084F8C !important;
    background: #f0f8ff !important;
}

.file-help {
    display: block;
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* Campos readonly com estilo diferenciado */
.form-group input[readonly] {
    background: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsividade para seções */
@media (max-width: 768px) {
    .section-header {
        margin: 20px -20px 15px;
        padding: 12px 15px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin: 15px -15px 10px;
        padding: 10px 12px;
    }
}