/* ==========================================================================
   EL CURUL - Pantallas de conexión y acceso (js/cloud.js)
   ========================================================================== */
.cloud-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(106, 106, 70, 0.18), transparent 60%),
    linear-gradient(160deg, #1c130d 0%, #0f0b08 100%);
  font-family: 'Montserrat', system-ui, sans-serif;
}

.cloud-card {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(106, 106, 70, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f5ecdf;
}

.cloud-card-center {
  align-items: center;
  text-align: center;
  gap: 14px;
}

.cloud-logo {
  width: 150px;
  max-width: 60%;
  margin: 0 auto 4px;
  display: block;
}

.cloud-kicker {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9bd8a;
}

.cloud-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff7ea;
}

.cloud-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 236, 223, 0.8);
}

.cloud-emoji {
  font-size: 2rem;
  line-height: 1;
}

.cloud-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 236, 223, 0.75);
}

.cloud-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cloud-input:focus {
  outline: none;
  border-color: #8a8f5c;
  box-shadow: 0 0 0 3px rgba(106, 106, 70, 0.25);
}

.cloud-msg {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9d8a;
}

.cloud-btn {
  margin-top: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a6a46, #4a5336);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 8px 22px rgba(106, 106, 70, 0.28);
}

.cloud-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(106, 106, 70, 0.38);
}

.cloud-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.cloud-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(106, 106, 70, 0.25);
  border-top-color: #b9bd8a;
  animation: cloud-spin 0.8s linear infinite;
}

@keyframes cloud-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-spinner { animation-duration: 2.4s; }
  .cloud-btn { transition: none; }
}

/* Sesión del admin en la cabecera */
.cloud-session {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cloud-session-mail {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.75;
}

@media (max-width: 719px) {
  .cloud-session-mail { display: none; }
}
