/* ══════════════════════════════════════════
   LOGIN.CSS
   ══════════════════════════════════════════ */

.login-body {
  overflow: hidden;
}

/* ── CANVAS + GRAIN ── */
#ocean-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.login-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── BUBBLES ── */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(126,232,220,.25), rgba(46,191,176,.05));
  border: 1px solid rgba(126,232,220,.15);
  animation: rise linear infinite;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-110vh) translateX(30px) scale(1.1); opacity: 0; }
}

/* ── LAYOUT ── */
.login-page {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* ── CARD ── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(13, 33, 55, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(126,232,220,.12);
  border-radius: 24px;
  padding: 52px 44px 44px;
  box-shadow:
    0 0 0 1px rgba(46,191,176,.05),
    0 32px 80px rgba(0,0,0,.6),
    0 0 120px rgba(46,191,176,.04);
  animation: cardIn .8s cubic-bezier(.16,1,.3,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── LOGO ── */
.logo-wrap {
  text-align: center;
  margin-bottom: 40px;
  animation: cardIn .8s .1s cubic-bezier(.16,1,.3,1) both;
}

.logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .92;
}

#logo-text {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--white);
  letter-spacing: .1em;
}

.logo-sub {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--aqua);
  text-transform: uppercase;
  margin-top: 10px;
  opacity: .7;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  animation: cardIn .8s .15s cubic-bezier(.16,1,.3,1) both;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,191,176,.3), transparent);
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
  opacity: .5;
}

/* ── FORM ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cardIn .8s .2s cubic-bezier(.16,1,.3,1) both;
}

.field-wrap {
  position: relative;
  transition: transform .2s;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field {
  width: 100%;
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(126,232,220,.12);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field::placeholder { color: rgba(90,138,154,.5); }

.field:focus {
  border-color: rgba(46,191,176,.4);
  background: rgba(10, 22, 40, 0.9);
  box-shadow: 0 0 0 3px rgba(46,191,176,.06), 0 0 20px rgba(46,191,176,.08);
}

/* ── BUTTON ── */
.login-btn {
  margin-top: 8px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--aqua) 100%);
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--deep);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 24px rgba(46,191,176,.25);
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(46,191,176,.35);
}

.login-btn:active { transform: translateY(0); }

/* ── ERRO ── */
.login-erro {
  font-size: 12.5px;
  color: #e87c7c;
  text-align: center;
  min-height: 18px;
}

/* ── FOOTER ── */
.login-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(90,138,154,.4);
  text-transform: uppercase;
  animation: cardIn .8s .3s cubic-bezier(.16,1,.3,1) both;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .login-card { padding: 40px 28px 36px; border-radius: 20px; }
}