/* public/css/login.css
   ACNewsletter – Login (GALILEO STYLE, but Graphite / Smoke)
   FINAL v4 — graphite ambient + glass depth + dark premium button
*/

:root{
  --text: #0b1220;
  --muted: rgba(11, 18, 32, .62);

  /* Graphite / Smoke palette */
  --g1: #f6f7fa;
  --g2: #eef1f6;
  --g3: #e7ebf2;

  /* Glass */
  --glassA: rgba(255,255,255,.18);
  --glassB: rgba(255,255,255,.08);
  --glassBorder: rgba(255,255,255,.28);

  /* Inputs */
  --inputBg: rgba(255,255,255,.80);
  --inputBorder: rgba(11,18,32,.12);

  /* Button (graphite) */
  --btn1: #0b1220;
  --btn2: #111827;

  /* Shadows */
  --shadow: 0 40px 120px rgba(2, 6, 23, 0.30);
  --shadow2: 0 14px 30px rgba(2, 6, 23, 0.16);
  --shadow3: 0 10px 20px rgba(2, 6, 23, 0.14);
  --focus: 0 0 0 4px rgba(2,6,23,.14);

  /* Alert */
  --danger: #ef4444;
  --dangerBg: rgba(239,68,68,.10);
  --dangerLine: rgba(239,68,68,.22);

  --radius: 22px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);

/* --- Graphite background micro-darken (final touch) --- */
  background:
    radial-gradient(1200px 820px at 16% 18%, rgba(255,255,255,.94), transparent 58%),
    radial-gradient(1100px 760px at 84% 74%, rgba(224,228,236,.88), transparent 62%),
    radial-gradient(900px 520px at 64% 20%, rgba(212,218,228,.62), transparent 60%),
    linear-gradient(180deg, #f1f3f7 0%, #e8ecf2 48%, #dde2ea 100%);
}


.aclogin-body{
  min-height:100vh;
  overflow:hidden;
}

/* Background layers */
.aclogin-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
}

/* Big ambient shapes (graphite, not blue) */
.aclogin-blob{
  position:absolute;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .80;
}

.aclogin-blob.b1{
  top:-360px; left:-360px;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(17,24,39,.22),
      rgba(148,163,184,.18) 55%,
      rgba(255,255,255,.16) 78%,
      transparent 84%);
}

.aclogin-blob.b2{
  bottom:-440px; right:-460px;
  background:
    radial-gradient(circle at 35% 35%,
      rgba(148,163,184,.22),
      rgba(17,24,39,.14) 58%,
      rgba(255,255,255,.18) 80%,
      transparent 86%);
}

/* Soft “fabric” overlay */
.aclogin-bg::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 55% 40%, rgba(255,255,255,.20), transparent 64%),
    radial-gradient(700px 420px at 30% 70%, rgba(255,255,255,.14), transparent 62%),
    linear-gradient(120deg, rgba(255,255,255,.09), rgba(255,255,255,0) 45%, rgba(255,255,255,.07));
  opacity:.85;
}

/* Subtle grid */
.aclogin-grid{
  position:absolute;
  inset:0;
  opacity:.07;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.10) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at 50% 38%, rgba(0,0,0,.70), transparent 74%);
}

/* Layout */
.aclogin-shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 48px 18px;
}

/* Card (glass panel) */
.aclogin-card{
  width: min(560px, 100%);
  position:relative;

  background: linear-gradient(180deg, var(--glassA), var(--glassB));
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  border: 1px solid var(--glassBorder);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 50px 32px 26px 32px;
  overflow: visible;
}

/* Inner rim + highlight */
.aclogin-card::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 10px);
  border: 1px solid rgba(255,255,255,.20);
  pointer-events:none;
}

.aclogin-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: calc(var(--radius) + 2px);
  background: radial-gradient(900px 420px at 20% 0%,
    rgba(255,255,255,.26),
    transparent 56%);
  pointer-events:none;
  opacity:.75;
}

/* Floating logo */
.aclogin-logo-wrap{
  position:absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -62%);
  width: 84px;
  height: 84px;
  border-radius: 999px;

  background: rgb(255 255 255 / 27%);
  border: 3px solid rgb(91 94 101 / 62%);
  box-shadow:
    0 36px 84px rgba(2,6,23,.24),
    0 14px 24px rgba(2,6,23,.14);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.aclogin-logo{
  width: 62px;
  height: 62px;
  object-fit: contain;
  display:block;
}

/* Header */
.aclogin-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  padding: 4px 0 18px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.aclogin-brand{ text-align:center; }

.aclogin-title{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .35px;
  line-height: 1.1;
}

/* Alert */
.aclogin-alert{
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--dangerLine);
  background: var(--dangerBg);
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.35;
}

/* Form */
.aclogin-form{ margin:0; }

.aclogin-field{ margin: 15px 0; }

.aclogin-field label{
  display:block;
  font-size: 12.8px;
  color: rgba(11,18,32,.78);
  margin: 0 0 7px 2px;
  font-weight: 780;
  letter-spacing: .12px;
}

/* Inputs */
.aclogin-input-wrap{ position:relative; }

.aclogin-input-wrap input{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--inputBorder);
  background: var(--inputBg);
  padding: 12px 50px 12px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow2);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease, background .15s ease;
}

.aclogin-input-wrap input::placeholder{
  color: rgba(11,18,32,.38);
}

.aclogin-input-wrap input:focus{
  border-color: rgba(11,18,32,.22);
  box-shadow: var(--shadow2), var(--focus);
  background: rgba(255,255,255,.92);
}

/* Password toggle */
.aclogin-eye{
  position:absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow3);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 3px;
  padding:0;
}

.aclogin-eye:hover{
  background: rgba(255,255,255,.94);
  border-color: rgba(11,18,32,.20);
}

.aclogin-eye:active{
  transform: translateY(-50%) scale(.98);
}

.aclogin-eye .dot{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(11,18,32,.52);
}

/* Hint */
.aclogin-hint{
  min-height: 18px;
  margin: 6px 2px 0 2px;
  font-size: 12px;
  color: #b45309;
}

/* Button — graphite premium */
.aclogin-btn{
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: .25px;
  color: #ffffff;
  cursor: pointer;

  background:
    radial-gradient(120px 90px at 22% 28%, rgba(255,255,255,.16), transparent 62%),
    linear-gradient(90deg, var(--btn1), var(--btn2));
  box-shadow:
    0 22px 50px rgba(2,6,23,.20),
    0 14px 26px rgba(2,6,23,.18);
  transition: transform .06s ease, filter .15s ease, opacity .15s ease;
  margin-top: 16px;
}

.aclogin-btn:hover{ filter: brightness(1.06); }
.aclogin-btn:active{ transform: translateY(1px); }
.aclogin-btn:disabled{
  cursor:not-allowed;
  opacity:.65;
  filter: grayscale(.2);
}

/* Footer/meta */
.aclogin-meta{
  display:flex;
  justify-content:center;
  gap: 10px;
  align-items:center;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(11,18,32,.56);
}

.aclogin-meta .sep{ opacity: .55; }

/* Mobile */
@media (max-width: 420px){
  .aclogin-shell{ padding: 44px 14px; }
  .aclogin-card{ padding: 48px 18px 24px 18px; }
  .aclogin-title{ font-size: 17.5px; }
  .aclogin-logo-wrap{
    width: 76px; height: 76px;
    transform: translate(-50%, -60%);
  }
  .aclogin-logo{ width: 58px; height: 58px; }
}
