/* Login Popup */
.login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Garantir que o modal bootstrap fique na frente do login popup */
.modal {
    z-index: 10001 !important;
}

.login-popup.active {
    opacity: 1;
    visibility: visible;
}

.login-content {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.login-popup.active .login-content {
    transform: translateY(0);
}

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

.login-logo {
    width: 60px;
    margin-bottom: 1rem;
}

.login-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Login Options */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-btn {
    background: #6c63ff;
    color: white;
}

.email-btn:hover {
    background: #5a52e0;
}

.facebook-btn {
    background: #1877f2;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.245);
    opacity: 0.6;
    cursor: not-allowed;
}

.facebook-btn:hover {
    background: #1877f2;
    opacity: 0.6;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.245);
}

/* Email Form */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-control {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #6c63ff;
}

.submit-btn {
    background: #6c63ff;
    color: white;
}

.submit-btn:hover {
    background: #5a52e0;
}

.back-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Footer */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.login-footer a {
    color: #6c63ff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Estilo para o botão de sucesso pós-login (estilo outline por padrão, com maior especificidade) */
#loginPopup .start-writing-btn {
  background-color: transparent !important; /* Força fundo transparente */
  color: #6c63ff !important; /* Força cor do texto roxa */
  border: 2px solid #6c63ff !important; /* Força borda roxa */
  padding: 0.8rem 1.0rem; /* Padding vertical e horizontal */
  font-size: 1rem; 
  font-weight: 500; 
  margin-top: 1.5rem; 
  border-radius: 25px; 
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  width: 200px; /* Define uma largura fixa */
  /* display: inline-flex; Mantido para alinhamento interno se necessário */
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  white-space: nowrap; 
  /* Remove estilos herdados que podem conflitar */
  box-shadow: none !important; 
}

#loginPopup .start-writing-btn:hover {
  /* Apenas efeitos de transform/shadow, sem mudar cor/bg */
  transform: translateY(-1px); 
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2) !important; 
}

/* Regra :active comentada */
/*#loginPopup .start-writing-btn:active {
  transform: translateY(0px); 
}*/

/* Responsividade */
@media (max-width: 480px) {
    .login-content {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.2rem;
    }

    .login-btn {
        font-size: 0.9rem;
    }
}

/* Estilos do Modal de Termos */
#termsModal .modal-content {
    background: #fff;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#termsModal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1rem;
}

#termsModal .modal-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
}

#termsModal .modal-body {
    padding: 1rem;
    color: #333;
}

#termsModal .modal-body h6 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#termsModal .modal-body p {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

#termsModal .modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

#termsModal .modal-body li {
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

#termsModal .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

#termsModal .btn-secondary {
    background-color: #6c63ff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#termsModal .btn-secondary:hover {
    background-color: #5a52e0;
    transform: translateY(-1px);
}

#termsModal .btn-close {
    opacity: 0.5;
    transition: all 0.2s ease;
}

#termsModal .btn-close:hover {
    opacity: 0.8;
} 