/* =====================================================
   Fertig Auth — Lavender-Rose
   ===================================================== */
*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
body{
  margin:0;
  background:
    radial-gradient(120% 55% at 50% 115%, var(--page-glow-a) 0%, var(--page-glow-b) 42%, transparent 74%),
    var(--bg);
  color:var(--text);
  font:14px/1.6 'JetBrains Mono',monospace;
  display:grid;grid-template-rows:auto 1fr;
  position:relative;transition:background .3s ease,color .3s ease;
}
/* Floating geometric decoration */
body::before{
  content:"";position:fixed;width:200px;height:200px;
  border:3px solid rgba(190,149,190,.04);border-radius:50%;
  top:10%;right:-50px;
  animation:neo-drift 20s ease-in-out infinite;
  pointer-events:none;
}
body::after{
  content:"";position:fixed;width:80px;height:80px;
  border:3px solid rgba(232,160,200,.05);transform:rotate(45deg);
  bottom:15%;left:8%;
  animation:neo-drift 15s ease-in-out infinite 4s;
  pointer-events:none;
}

/* Top brand chip */
.brand-chip{
  display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--primary);
  font-weight:800;margin:clamp(22px,5vw,42px) auto 0;
  font-size:clamp(20px,2.2vw,26px);
  animation:neo-fadeUp .5s ease both;
}
.brand-chip .logo{
  width:44px;height:44px;border-radius:10px;display:block;
  background:url('/logo/logo.png') center/contain no-repeat;
  box-shadow:0 4px 12px rgba(190,149,190,.3);
  text-indent:-9999px;white-space:nowrap;overflow:hidden;
}

.login-page .auth-hero{
  min-height:100vh;
  align-content:start;
  justify-items:center;
  row-gap:22px;
  padding:18px 20px 64px;
}

.login-page .auth-topbar{
  width:min(460px,92vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.login-page .brand-chip{
  margin:0;
  gap:14px;
  font-size:clamp(32px,4.5vw,44px);
  letter-spacing:.3px;
}

.login-page .brand-chip .logo{
  width:58px;
  height:58px;
  border-radius:12px;
  text-indent:-9999px;white-space:nowrap;overflow:hidden;
}

.login-page .theme-toggle{
  width:46px;
  height:46px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--primary);
  box-shadow:var(--shadow-sm);
}

.login-page .theme-toggle:hover{
  background:var(--surface-2);
  border-color:var(--primary);
}

/* Centered card */
.auth-hero{
  display:grid;place-items:center;padding:36px 20px 64px;
}
.card{
  width:min(460px,92vw);
  background:var(--surface);border:1px solid var(--border);border-radius:10px;
  box-shadow:var(--shadow-md);padding:38px 32px;
  animation:neo-fadeUp .5s ease .15s both;
  position:relative;overflow:hidden;
  transition:background .3s ease,border-color .3s ease;
}
/* Decorative corner mark */
.card::before{
  content:"";position:absolute;right:-20px;top:-20px;
  width:60px;height:60px;border:2px solid rgba(190,149,190,.06);border-radius:50%;
  pointer-events:none;
}
.card h1{
  margin:0 0 6px;font-size:22px;font-weight:700;color:var(--primary);
}
.card .sub{margin:0 0 24px;color:var(--text-muted);font-weight:500}

/* Fields */
.field{margin-bottom:18px}
.field label{display:block;font-weight:700;margin:0 0 6px;font-size:13px;color:var(--text)}
.field input{
  width:100%;padding:12px 14px;border:1.5px solid var(--border);border-radius:8px;
  font-size:14px;background:var(--surface);color:var(--text);
  font-family:'JetBrains Mono',monospace;
  transition:border-color .2s,box-shadow .2s;
}
.field input:focus{
  outline:none;border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(190,149,190,.12);
}
.err{display:block;color:var(--danger);font-weight:700;margin-top:6px;min-height:18px;font-size:12px}

/* Primary CTA */
.cta{
  width:100%;padding:13px 16px;border:none;border-radius:8px;cursor:pointer;
  background:var(--brand-grad);color:#fff;
  font-weight:800;font-size:14px;letter-spacing:.3px;
  font-family:'JetBrains Mono',monospace;
  box-shadow:0 4px 14px rgba(190,149,190,.22);
  transition:all .2s ease;margin-top:10px;
}
.cta:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 6px 18px rgba(190,149,190,.28)}
.cta:active{transform:translateY(0)}

.flash{color:var(--success);font-weight:800;margin:6px 0 12px;min-height:20px}
.switch{
  margin:18px 0 0;color:var(--text-muted);font-weight:500;text-align:center;
}
.switch a{color:var(--primary);font-weight:700;text-decoration:none}
.switch a:hover{text-decoration:underline}

@media (max-width:560px){
  .login-page .auth-topbar{
    width:100%;
  }

  .login-page .brand-chip{
    font-size:clamp(24px,8vw,32px);
  }

  .login-page .brand-chip .logo{
    width:46px;
    height:46px;
    font-size:21px;
  }
}

/* ===============================
   Google Auth Button
   =============================== */

.google-auth {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.google-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: all 0.2s ease;
}

.google-btn:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(190,149,190,.18);
}

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


.google-icon {
  width: 18px;
  height: 18px;
}
