/* Importar fuente Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Variables de Color - Diseño Pencil */
:root {
    --primary-color: #65A7FB; /* Azul del diseño */
    --primary-foreground: #111111;
    --secondary-color: #666666; /* Gris muted */
    --background-color: #F2F3F0; /* Fondo suave */
    --card-background: #ffffff; /* Fondo de tarjetas/formularios */
    --text-color: #111111; /* Texto oscuro */
    --muted-foreground: #666666; /* Texto secundario */
    --input-border: #CBCCC9; /* Borde de inputs */
    --shadow-light: 0 1px 1.75px rgba(0, 0, 0, 0.05);
    --radius-pill: 999px;
}

/* Estilos Globales */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    min-height: 100vh;
    height: 100vh;
}

/* Contenedor del Formulario - Diseño móvil full-screen */
.auth-container {
    background: var(--card-background);
    border-radius: 0;
    box-shadow: var(--shadow-light);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow-y: auto;
}

/* Header del formulario - Exactamente como diseño Pencil */
.auth-header {
    padding: 16px 32px 32px 32px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
    font-weight: 400;
}

/* Contenedor del formulario - Exactamente como diseño Pencil */
.auth-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 0 1 auto;
    justify-content: center;
    align-items: stretch;
    max-width: 100%;
}

.auth-form a {
    text-align: left;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-top: -20px;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.auth-form a:hover {
    opacity: 0.8;
}

/* Elementos de formulario */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.43;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input[type="email"], 
input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 8px 16px;
    height: 40px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-pill);
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

input::placeholder {
    color: var(--muted-foreground);
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botones */
button {
    background-color: var(--primary-color);
    color: var(--primary-foreground);
    padding: 10px 16px;
    height: 40px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    opacity: 0.9;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enlaces - Exactamente como diseño Pencil */
.links {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.2s;
}

.links a:hover {
    opacity: 0.8;
}

.links-horizontal {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 24px;
    flex-shrink: 0;
}

.links-horizontal .link-text {
    color: var(--muted-foreground);
    font-size: 14px;
}

.links-horizontal .link-action {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.links-horizontal .link-action:hover {
    opacity: 0.8;
}

/* Mensajes de error/éxito - Estilos del diseño */
#message {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.43;
}

#message.message-loading {
    color: var(--primary-color);
}

#message.message-success {
    color: #004D1A;
}

#message.message-error {
    color: #8C1C00;
}

.menu {
  /* position: absolute; */
  text-align: end;
  width: 100%;
  top: 0px;
  right: 0px;
}