@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --pond-deep: #0b3d4a;
  --pond-mid: #116a7b;
  --pond-light: #1b8fa3;
  --panel: #0e4a57;
  --panel-line: #1d6476;
  --ink: #eafbfa;
  --ink-dim: #9fd3d6;
  --duck-yellow: #ffcd3c;
  --duck-orange: #ff9f40;
  --danger: #ff6b6b;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Baloo 2', var(--sans);
}
*{ box-sizing: border-box; }
body{
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,205,60,0.12), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,159,64,0.10), transparent 45%),
    linear-gradient(180deg, var(--pond-deep), var(--pond-mid) 60%, var(--pond-light));
  color: var(--ink); font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* Ondas decorativas tipo estanque, puramente CSS */
body::before, body::after{
  content: "";
  position: absolute;
  width: 48px;
  height: 52px;
  opacity: 0.16;
  filter: blur(0.3px);
  background: url("../patient/assets/pato-reposo.svg") center / contain no-repeat;
  pointer-events: none;
}
body::before{ top: 8%; left: 10%; transform: rotate(-8deg); }
body::after{ bottom: 10%; right: 12%; width: 64px; height: 69px; transform: scaleX(-1) rotate(6deg); }

.login-box{
  width: 320px; background: rgba(14,74,87,0.85); backdrop-filter: blur(6px);
  border: 2px solid var(--duck-yellow); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative; z-index: 1;
}
.logo{ text-align: center; margin-bottom: 4px; }
.logo h1{ margin: 0; font-size: 24px; font-family: var(--display); font-weight: 800; color: var(--duck-yellow); }
.logo span{ font-size: 12px; color: var(--ink-dim); }

.role-switch, .mode-switch{
  display: flex; background: rgba(0,0,0,0.25); border: 1px solid var(--panel-line);
  border-radius: 10px; padding: 3px; gap: 3px;
}
.role-switch button, .mode-switch button{
  flex: 1; padding: 8px 6px; background: transparent; border: none; border-radius: 8px;
  color: var(--ink-dim); font-family: var(--sans); font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.role-switch button.active, .mode-switch button.active{ background: var(--duck-yellow); color: #1a1200; }

form{ display: flex; flex-direction: column; gap: 12px; }
input{
  background: rgba(0,0,0,0.25); border: 1px solid var(--panel-line); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; font-family: var(--sans);
}
input::placeholder{ color: var(--ink-dim); }
input:focus{ border-color: var(--duck-yellow); }

.btn{ padding: 10px 14px; border-radius: 10px; border: 1px solid var(--panel-line); background: rgba(0,0,0,0.25); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn.primary{ background: var(--duck-yellow); color: #1a1200; border-color: var(--duck-yellow); font-weight: 800; }
.btn.primary:hover{ filter: brightness(1.08); transform: translateY(-1px); }

.login-error{ color: var(--danger); font-size: 12px; min-height: 14px; }

/* Botón flotante "Acerca del proyecto" */
.tab-info{
  position: fixed; top: 20px; right: 20px; z-index: 2;
  background: rgba(0,0,0,0.3); color: var(--ink); border: 1px solid var(--duck-yellow);
  border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.tab-info:hover{ background: var(--duck-yellow); color: #1a1200; }

/* Modal */
.modal-overlay{
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center; z-index: 10; padding: 20px;
}
.modal-overlay.show{ display: flex; }
.modal-box{
  width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto;
  background: var(--pond-deep); border: 2px solid var(--duck-yellow); border-radius: 18px;
  padding: 28px; position: relative;
}
.modal-box h2{ font-family: var(--display); color: var(--duck-yellow); margin-top: 0; }
.modal-box h3{ color: var(--duck-orange); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.modal-box p{ font-size: 13.5px; line-height: 1.6; color: var(--ink); margin-top: 0; margin-bottom: 18px; }
.modal-close{
  position: absolute; top: 14px; right: 14px; background: transparent; border: none;
  color: var(--ink); font-size: 18px; cursor: pointer;
}
