/* Professional Corporate Design */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #64748b;
  --bg-main: #0f172a;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --success: #059669;
  --error: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: 750px;
}

main.card {
  background: var(--bg-card);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.header {
  background: var(--primary);
  padding: 2rem;
  border-bottom: 3px solid var(--primary-dark);
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.375rem;
  letter-spacing: -0.025em;
}

.subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.form-section,
.login-section {
  padding: 2rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

input[type=text],
input[type=password] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
  background: white;
  color: var(--text-primary);
  font-family: inherit;
}

input[type=text]:focus,
input[type=password]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
}

.message:not(:empty) {
  display: block;
}

.message.error {
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.message.success {
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.board-section {
  padding: 2rem;
  background: #f8fafc;
}

.content-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.content-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.viewer-content {
  background: white;
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  min-height: 300px;
}

.helper-text {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.editor-field {
  height: 350px;
  background: white;
}

.result-message {
  margin-top: 1.25rem;
  padding: 0.875rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.result-message:not(:empty) {
  display: block;
}

.result-message a {
  color: var(--success);
  font-weight: 500;
  text-decoration: underline;
}

.result-message a:hover {
  color: #047857;
}

#editor,
#viewer {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: white;
}

.ql-container {
  font-size: 15px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.ql-editor {
  min-height: 250px;
  line-height: 1.6;
}

.ql-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  
  .header {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .form-section,
  .login-section,
  .board-section {
    padding: 1.5rem;
  }
}

.container {
  width: 100%;
  max-width: 750px;
}

main.card {
  background: var(--bg-card);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.header {
  background: var(--primary);
  padding: 2rem;
  border-bottom: 3px solid var(--primary-dark);
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.375rem;
  letter-spacing: -0.025em;
}

.subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.form-section,
.login-section {
  padding: 2rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

input[type=text],
input[type=password] {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
  background: white;
  color: var(--text-primary);
  font-family: inherit;
}

input[type=text]:focus,
input[type=password]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.625rem 1.25rem;
  background: var(--secondary-gray);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #475569;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
}

.message:not(:empty) {
  display: block;
}

.message.error {
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.message.success {
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.board-section {
  padding: 2rem;
  background: #f8fafc;
}

.content-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.content-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.viewer-content {
  background: white;
  border-radius: 3px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  min-height: 300px;
}

.helper-text {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.editor-field {
  height: 350px;
  background: white;
}

.result-message {
  margin-top: 1.25rem;
  padding: 0.875rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.result-message:not(:empty) {
  display: block;
}

.result-message a {
  color: var(--success);
  font-weight: 500;
  text-decoration: underline;
}

.result-message a:hover {
  color: #047857;
}

#editor,
#viewer {
  border: 1px solid var(--border);
  border-radius: 3px;
  background: white;
}

.ql-container {
  font-size: 15px;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.ql-editor {
  min-height: 250px;
  line-height: 1.6;
}

.ql-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }
  
  .header {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .form-section,
  .login-section,
  .board-section {
    padding: 1.5rem;
  }
}
/* ...existing code... */

/* Estilos para páginas de error */
.error-content {
    text-align: center;
    padding: 2rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color, #007bff);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
    color: var(--text-color, #333);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    color: var(--text-secondary, #666);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    min-width: 150px;
}

@media (max-width: 768px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-content h2 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ...existing code... */