/* Estilos específicos para a página de login */

/* Login Section */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Login Card */
.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.login-logo .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.login-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Form Styles */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    z-index: 1;
    overflow: visible;
}

.input-group i {
    position: absolute;
    left: 18px;
    color: #667eea;
    font-size: 1.1rem;
    z-index: 0;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 55px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



.input-group input::placeholder {
    color: #999;
}



/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    user-select: none;
    line-height: 1.4;
    gap: 12px;
    margin-bottom: 1rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: #667eea;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.checkbox-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-container a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: block;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .btn-loading {
    display: flex;
}

/* Divider */
.login-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.login-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    background: white;
    color: #333;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.btn-google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

/* Login Footer */
.login-footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.register-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Login Image */
.login-image {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    text-align: center;
}

.image-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.image-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.image-content ul {
    list-style: none;
    text-align: left;
}

.image-content li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.image-content i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .login-image {
        display: none;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 100px 0 40px;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .login-logo h1 {
        font-size: 1.5rem;
    }
    
    .image-content h2 {
        font-size: 2rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Active state for navigation */
.nav-link.active {
    color: #ffd700 !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Error states */
.input-group.error input {
    border-color: #e74c3c;
    background: #fdf2f2;
    z-index: 1;
}

.input-group.error i {
    color: #e74c3c;
    z-index: 0;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    padding: 2px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Success states */
.input-group.success input {
    border-color: #27ae60;
    background: #f0f9f4;
}

.input-group.success i {
    color: #27ae60;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
} 

/* Modal de Cadastro Expandido */
.register-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.register-modal .modal-body {
    padding: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: #667eea;
    font-size: 1rem;
}

/* Campos específicos */
.form-group input[type="date"] {
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="date"]:focus {
    border-color: #667eea;
    outline: none;
}

.form-group select {
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Melhorar aparência dos selects */
.form-group select {
    width: 100%;
    box-sizing: border-box;
}

/* Estilo para opções dos selects */
.form-group select option {
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Estilo para select quando tem valor selecionado */
.form-group select:not([value=""]) {
    color: #333;
}

/* Estilo para select vazio */
.form-group select[value=""] {
    color: #999;
}

/* Estilos para todos os campos de texto */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"] {
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background-color: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="password"]:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Estilo para campos com placeholder */
.form-group input::placeholder {
    color: #999;
    font-size: 0.85rem;
}

/* Estilo para campos desabilitados */
.form-group input:disabled {
    background-color: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

/* Estilos para labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Removendo asteriscos duplicados - já estão no HTML */
.form-group label:has(+ input[required])::after,
.form-group label:has(+ select[required])::after {
    content: "";
}

/* Melhorar espaçamento entre grupos de formulário */
.form-group {
    margin-bottom: 1.25rem;
}

/* Estilo para linhas de formulário */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsividade do modal de cadastro */
@media (max-width: 768px) {
    .register-modal {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .register-modal .modal-body {
        padding: 1rem;
    }
    
    .form-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Ajustar tamanho dos campos em mobile */
    .form-group input,
    .form-group select {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

/* Melhorar aparência geral do formulário */
.register-modal .modal-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Estilo para seções do formulário */
.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.form-section:last-of-type {
    margin-bottom: 1rem;
}

/* Estilo para o botão de submit */
.register-modal .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.register-modal .btn-primary:active {
    transform: translateY(0);
}

/* Estilos específicos para checkbox no modal de registro */
.register-modal .checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 1.5rem 0;
    padding: 0;
    cursor: pointer;
}

.register-modal .checkbox-container input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
}

.register-modal .checkbox-container .checkmark {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.register-modal .checkbox-container label {
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: #666;
    font-size: 0.9rem;
    user-select: none;
}

/* Animações para o modal */
.register-modal {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

.register-modal .form-group,
.register-modal .form-group label,
.register-modal .form-group input,
.register-modal .form-group select,
.register-modal .form-group textarea {
    text-align: left !important;
}

/* ===== ESTILOS PARA MODAL DE DEFINIÇÃO DE SENHA ===== */

#setPasswordModal .modal-content {
    max-width: 500px;
    width: 90%;
}

#setPasswordModal .modal-header h3 {
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#setPasswordModal .modal-header h3 i {
    color: #667eea;
}

#setPasswordModal .modal-body {
    text-align: center;
}

#setPasswordModal .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

#setPasswordModal .form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

#setPasswordModal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

#setPasswordModal .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

#setPasswordModal .btn-secondary:hover {
    background: #5a6268;
}

#setPasswordModal .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#setPasswordModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#setPasswordModal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    #setPasswordModal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    #setPasswordModal .form-actions {
        flex-direction: column;
    }
    
    #setPasswordModal .btn-secondary,
    #setPasswordModal .btn-primary {
        width: 100%;
        justify-content: center;
    }
} 

/* Estilos para a página de reset de senha */
.reset-password-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

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

.reset-password-header h1 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 2rem;
}

.reset-password-header p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

.reset-password-form {
    margin-bottom: 30px;
}

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

.reset-password-form label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.reset-password-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.reset-password-form input:focus {
    outline: none;
    border-color: #667eea;
}

.password-requirements {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 0.9rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.password-requirements li {
    margin-bottom: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.password-requirements li i {
    margin-right: 8px;
    font-size: 0.8rem;
}

.btn-reset {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-reset:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.reset-password-footer {
    text-align: center;
    margin-top: 20px;
}

.back-to-login {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-login:hover {
    color: #5a6fd8;
}

.back-to-login i {
    margin-right: 8px;
}

/* Responsividade para reset de senha */
@media (max-width: 768px) {
    .reset-password-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .reset-password-header h1 {
        font-size: 1.5rem;
    }
    
    .reset-password-header p {
        font-size: 1rem;
    }
} 