/* ================================================================
   AUTH.CSS — Halaman Login & Register
   Simulasi Blockchain Perizinan SIUP — DPMPTSP Kota Medan
   ================================================================ */

/* ── Base ── */
.auth-body {
  min-height:100vh; display:flex; flex-direction:column;
  background:var(--navy); overflow-x:hidden;
}

/* ── Background ── */
.auth-bg {
  position:fixed; inset:0; z-index:0; overflow:hidden;
}
.auth-bg-gradient {
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 65% 55% at 12% 50%, rgba(18,81,204,.32) 0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 88% 25%, rgba(124,92,252,.18) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 55% 92%, rgba(0,200,255,.1) 0%, transparent 60%),
    linear-gradient(155deg, #040f26 0%, #070f20 45%, #0a1535 100%);
}
.auth-bg-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size:56px 56px;
}
.auth-bg-dots {
  position:absolute; inset:0;
  background-image:radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:32px 32px;
  mask-image:radial-gradient(ellipse 65% 75% at 50% 50%, black 0%, transparent 100%);
}

/* Floating particles */
.auth-particles { position:absolute; inset:0; pointer-events:none; }
.particle {
  position:absolute; border-radius:50%;
  animation:floatParticle 9s ease-in-out infinite;
}
.particle:nth-child(1) { width:5px;height:5px;background:rgba(18,81,204,.7);  top:18%;left:7%;  animation-delay:0s }
.particle:nth-child(2) { width:3px;height:3px;background:rgba(0,229,160,.6);  top:70%;left:18%; animation-delay:1.8s }
.particle:nth-child(3) { width:6px;height:6px;background:rgba(200,150,42,.55);top:38%;right:10%;animation-delay:3.2s }
.particle:nth-child(4) { width:4px;height:4px;background:rgba(0,200,255,.6);  top:80%;right:22%;animation-delay:5s }
.particle:nth-child(5) { width:5px;height:5px;background:rgba(124,92,252,.5); top:52%;left:45%; animation-delay:2.4s }
.particle:nth-child(6) { width:3px;height:3px;background:rgba(200,150,42,.4); top:25%;right:35%;animation-delay:6.5s }
@keyframes floatParticle {
  0%,100% { transform:translateY(0) scale(1);   opacity:.55; }
  50%      { transform:translateY(-20px) scale(1.25); opacity:1; }
}

/* ── Ribbon (di auth body) ── */
.auth-ribbon {
  position:relative; z-index:10;
  background:linear-gradient(90deg,#b34500,#e05c00,#b34500);
  color:#fff; font-family:var(--font-display);
  font-size:10px; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; text-align:center; padding:6px 12px;
  flex-shrink:0;
}

/* ════════════════════════════
   LOGIN PAGE
════════════════════════════ */
.login-layout {
  position:relative; z-index:1; flex:1;
  display:grid; grid-template-columns:1.1fr 0.9fr;
  min-height:0;
}

/* ── Left Panel (Branding) ── */
.login-left {
  display:flex; flex-direction:column; justify-content:center;
  padding:52px 60px;
}
.login-brand { display:flex; align-items:center; gap:14px; margin-bottom:44px; }
.login-brand-emblem {
  width:58px; height:58px; border-radius:16px; flex-shrink:0;
  background:rgba(200,150,42,.12); border:1.5px solid rgba(200,150,42,.3);
  display:flex; align-items:center; justify-content:center; font-size:30px;
}
.login-brand-text h1 {
  font-family:var(--font-display); font-size:17px; font-weight:800;
  color:#fff; line-height:1.25;
}
.login-brand-text p { font-size:11px; color:rgba(200,150,42,.8); margin-top:3px; }

.login-headline {
  font-family:var(--font-display); font-size:52px; font-weight:800;
  color:#fff; line-height:1.1; margin-bottom:16px; letter-spacing:-.03em;
  word-spacing:2px;
}
.login-headline span {
  background:linear-gradient(90deg, var(--gold-light), var(--bc-cyan));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.login-desc {
  font-size:14px; color:rgba(184,204,232,.68);
  line-height:1.8; max-width:380px; margin-bottom:38px;
}

.login-features { display:flex; flex-direction:column; gap:16px; }
.login-feat { display:flex; align-items:center; gap:14px; }
.lf-icon {
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:18px;
}
.lf-text h4 { font-size:13px; font-weight:600; color:rgba(255,255,255,.88); }
.lf-text p  { font-size:12px; color:rgba(184,204,232,.5); margin-top:2px; }

/* ── Right Panel (Form) ── */
.login-right {
  display:flex; align-items:center; justify-content:center;
  padding:36px 48px;
}
.login-card {
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--r-2xl); padding:38px 34px;
  width:100%; max-width:400px;
  backdrop-filter:blur(20px);
  box-shadow:0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.lc-top { margin-bottom:26px; }
.lc-top h2 {
  font-family:var(--font-display); font-size:22px; font-weight:800;
  color:#fff; margin-bottom:6px;
}
.lc-top p { font-size:13px; color:rgba(184,204,232,.55); line-height:1.6; }

/* ── Login Inputs ── */
.auth-label {
  font-family:var(--font-display); font-size:11.5px; font-weight:700;
  color:rgba(184,204,232,.65); letter-spacing:.06em; text-transform:uppercase;
  display:block; margin-bottom:6px;
}
.auth-input {
  width:100%; padding:12px 16px;
  border-radius:var(--r-sm); background:rgba(255,255,255,.07);
  border:1.5px solid rgba(255,255,255,.1);
  color:#fff; font-size:13.5px; font-family:var(--font-sans);
  outline:none; transition:border-color var(--tr), background var(--tr);
}
.auth-input:focus { border-color:rgba(45,106,246,.7); background:rgba(255,255,255,.1); }
.auth-input::placeholder { color:rgba(184,204,232,.28); }

/* ── Fix Select Dropdown ── */
select.auth-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8cce8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
}
select.auth-input option {
  background: #091e45;
  color: #fff;
}
select.auth-input:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.auth-input.readonly-field {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
  color: rgba(184,204,232,.5);
  cursor: not-allowed;
}

/* ── Demo Hint ── */
.demo-hint {
  background:rgba(200,150,42,.08); border:1px solid rgba(200,150,42,.2);
  border-radius:var(--r-sm); padding:10px 14px; margin-bottom:18px;
}
.demo-hint p { font-size:11.5px; color:rgba(200,150,42,.85); line-height:1.7; }
.demo-hint code {
  font-family:var(--font-mono); font-size:11px;
  color:var(--gold-light); background:rgba(200,150,42,.12);
  padding:1px 5px; border-radius:4px;
}

/* ── Login Button ── */
.login-btn {
  width:100%; padding:13px; border-radius:var(--r-sm); border:none;
  font-family:var(--font-display); font-size:14px; font-weight:700;
  letter-spacing:.04em; cursor:pointer; transition:all var(--tr);
  display:flex; align-items:center; justify-content:center; gap:9px;
  background:linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color:#fff; margin-top:6px;
}
.login-btn:hover {
  box-shadow:0 6px 24px rgba(18,81,204,.45); transform:translateY(-1px);
}

/* ── Error ── */
.auth-error {
  background:rgba(220,38,38,.1); border:1px solid rgba(220,38,38,.3);
  border-radius:var(--r-sm); padding:10px 14px; margin-bottom:14px;
  font-size:12.5px; color:#ff8090; display:none; line-height:1.5;
}
.auth-error.show { display:block; animation:fadeIn .2s ease; }

/* ── Footer ── */
.auth-card-footer {
  margin-top:20px; padding-top:18px;
  border-top:1px solid rgba(255,255,255,.07);
  text-align:center; font-size:11px; color:rgba(184,204,232,.3);
}
.auth-link {
  color:rgba(200,150,42,.8); text-decoration:underline; cursor:pointer;
}
.auth-link:hover { color:var(--gold-light); }

/* ════════════════════════════
   REGISTER PAGE
════════════════════════════ */
.register-layout {
  position:relative; z-index:1; flex:1;
  display:flex; align-items:flex-start; justify-content:center;
  padding:32px 20px 48px;
}
.register-card {
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  border-radius:var(--r-2xl); padding:36px 36px;
  width:100%; max-width:720px;
  backdrop-filter:blur(20px);
  box-shadow:0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}

/* Header */
.reg-header { text-align:center; margin-bottom:28px; }
.reg-header .reg-icon {
  width:58px; height:58px; border-radius:16px; margin:0 auto 14px;
  background:rgba(18,81,204,.15); border:1.5px solid rgba(18,81,204,.35);
  display:flex; align-items:center; justify-content:center; font-size:28px;
}
.reg-header h2 {
  font-family:var(--font-display); font-size:22px; font-weight:800; color:#fff;
  margin-bottom:6px;
}
.reg-header p { font-size:13px; color:rgba(184,204,232,.55); line-height:1.6; }

/* Section Divider */
.reg-section {
  font-family:var(--font-display); font-size:10px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase;
  color:rgba(200,150,42,.7); margin:24px 0 16px;
  display:flex; align-items:center; gap:10px;
}
.reg-section::after {
  content:''; flex:1; height:1px; background:rgba(255,255,255,.08);
}

/* Register form inputs menggunakan auth-input */
.reg-form .auth-label { color:rgba(184,204,232,.6); }

/* Wilayah readonly fields */
.auth-input.readonly-field {
  background:rgba(255,255,255,.04); color:rgba(184,204,232,.5);
  cursor:not-allowed; border-color:rgba(255,255,255,.06);
}

/* Password strength */
.pass-strength { margin-top:8px; }
.pass-bar-wrap { height:4px; background:rgba(255,255,255,.1); border-radius:2px; overflow:hidden; }
.pass-bar { height:100%; border-radius:2px; width:0%; transition:width .3s, background .3s; }
.pass-label { font-size:11px; color:rgba(184,204,232,.45); margin-top:5px; }

/* Submit button register */
.reg-btn {
  width:100%; padding:14px; border-radius:var(--r-sm); border:none;
  font-family:var(--font-display); font-size:14px; font-weight:700;
  letter-spacing:.04em; cursor:pointer; transition:all var(--tr);
  display:flex; align-items:center; justify-content:center; gap:9px;
  background:linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color:#fff; margin-top:10px;
}
.reg-btn:hover { box-shadow:0 6px 24px rgba(18,81,204,.45); transform:translateY(-1px); }
.reg-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }

/* ── Success State Register ── */
.reg-success {
  display:none; text-align:center; padding:20px 10px;
}
.reg-success.show { display:block; animation:fadeIn .3s ease; }
.reg-success-icon { font-size:56px; margin-bottom:16px; }
.reg-success h3 {
  font-family:var(--font-display); font-size:20px; font-weight:800;
  color:#fff; margin-bottom:8px;
}
.reg-success p { font-size:13.5px; color:rgba(184,204,232,.65); line-height:1.7; margin-bottom:24px; }

/* ── Responsive Auth ── */
@media (max-width:860px) {
  .login-layout { grid-template-columns:1fr; }
  .login-left { display:none; }
  .login-right { padding:24px 20px; }
  .login-card { max-width:100%; }
}
@media (max-width:600px) {
  .register-card { padding:24px 20px; }
  .register-layout { padding:20px 12px 36px; }
}
