/* =====================
   VARIABLES GLOBALES
===================== */
:root {
    --verde_medio: #178369;
    --verde_claro: #3AB394;
    --verde_oscuro: #0B3827;
    --otro_verde: #145c44;
    --bg-main: #f5f6f7;
    --bg-surface: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --font: citrine-variable, sans-serif;
    --dark-red: #cf4452;
}

/* =====================
   BODY Y LAYOUT
===================== */
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    justify-content: center;
    align-items: center;
    justify-content: space-between; 
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1; 
    width: 100%;
}

.layout {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* =====================
   LOGO Y BOTONES BASE
===================== */
.logo img {
    width:100%;
    height: auto;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;   
}

.btn {
    background: var(--verde_medio);
    color: #ffffff;
    padding: 12px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    width: 260px;
    cursor: pointer;
}

.btn:hover {
    background: var(--verde_claro);
}


/* TARJETA */
.card {
    background: var(--bg-surface);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}



/* ======================
    Mensajes
    ===================== */
.messages-container {
    position: fixed;
    top: calc(var(--topbar-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    min-width: 280px;
    max-width: 90vw;
    width: max-content;
    pointer-events: none;
}

.message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.message.success {
    background-color: #d1fae5;
    color: #178369;
}

.message.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.message.info {
    background-color: #dbeafe;
    color: #1e40af;
}
@keyframes messageFadeOut {
    0%   { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-12px); }
}

.message.fade-out {
    animation: messageFadeOut 0.5s ease forwards;
}