/* Login Screen */
/* min-height (no height fija): si el contenido es más alto que la pantalla,
   el recuadro crece y la página scrollea en vez de cortarse abajo. */
.login-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow-y: auto;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid #d4af37;
    border-radius: 18px;
    padding: 13px 14px;
    width: 100%;
    max-width: 400px;
    margin: auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.login-logo {
    font-size: 4em;
    margin-bottom: 20px;
}

.login-box h1 {
    color: #d4af37;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.login-box p {
    color: #b0b0b0;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 11px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.error-message {
    color: #ff4444;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Prevenir zoom en inputs en iOS */
@supports (-webkit-touch-callout: none) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* ══ #237 HISTORIAS en la pantalla de ingreso: anillo tipo Instagram (stories.js → loadPublic) ══ */
.lg-ring { position:relative; display:block; width:44px; height:44px; border:0; background:transparent; padding:0; cursor:pointer; }
.lg-ring-av { display:flex; width:44px; height:44px; border-radius:50%; padding:2.5px; background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7); }
.lg-ring.has-new .lg-ring-av { animation:lgRingPulse 2.2s ease-in-out infinite; }
@keyframes lgRingPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.07); } }
.lg-ring-av img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:2px solid #0b0b14; background:#0b0b14; }
.lg-ring-n { position:absolute; right:-3px; bottom:-3px; min-width:17px; height:17px; border-radius:999px; background:#ff1744; color:#fff; font-size:10px; font-weight:800; line-height:17px; text-align:center; padding:0 4px; }
