/* ============================================================
   LOGIN-REGISTER.CSS — Jadwal-in
   Space-dark theme, consistent with homepage
   ============================================================ */

*,
*::before,
*::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
}

body {
      font-family: 'Poppins', sans-serif;
      min-height: 100vh;
      background: linear-gradient(135deg, #000000 0%, #0d111c 50%, #1a1f35 100%);
      color: #fff;
      overflow-x: hidden;
}

/* ── Bintang latar ── */
.stars-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
}

.stars-bg .star-dot {
      position: absolute;
      border-radius: 50%;
      background: #fff;
      animation: twinkle var(--dur, 3s) infinite alternate;
      opacity: var(--op, 0.6);
}

@keyframes twinkle {
      from {
            opacity: 0.1;
      }

      to {
            opacity: var(--op, 0.8);
      }
}

/* ── Brand logo ── */
.auth-brand {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 16px 28px;
}

.brand-logo {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      font-family: 'Orbitron', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 0.05em;
}

.brand-logo i {
      color: #7ab8f5;
      font-size: 20px;
}

/* ── Wrapper ── */
.auth-wrapper {
      position: relative;
      z-index: 10;
      display: flex;
      min-height: 100vh;
}

/* ── Panel kiri ── */
.auth-left {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 100px 60px 60px;
      position: relative;
}

.auth-left-content {
      max-width: 420px;
}

.auth-left-content h2 {
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      font-weight: 700;
      color: #c8dff5;
      line-height: 1.2;
      margin-bottom: 1rem;
}

.auth-left-content h2 span {
      color: #7ab8f5;
}

.auth-left-content p {
      font-size: 15px;
      color: rgba(255, 255, 255, 0.55);
      font-weight: 300;
      line-height: 1.7;
      margin-bottom: 2.5rem;
}

.auth-stats {
      display: flex;
      gap: 2rem;
}

.auth-stat {
      display: flex;
      flex-direction: column;
      gap: 2px;
}

.auth-stat strong {
      font-family: 'Orbitron', sans-serif;
      font-size: 1.4rem;
      color: #7ab8f5;
}

.auth-stat span {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.4);
      text-transform: uppercase;
      letter-spacing: 0.06em;
}

/* Garis vertikal pembatas */
.auth-left::after {
      content: '';
      position: absolute;
      right: 0;
      top: 15%;
      bottom: 15%;
      width: 1px;
      background: linear-gradient(to bottom, transparent, rgba(122, 184, 245, 0.3), transparent);
}

/* ── Panel kanan ── */
.auth-right {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 100px 60px 60px;
}

/* ── Form box ── */
.auth-form-box {
      width: 100%;
      max-width: 400px;
}

.auth-form-box.hidden {
      display: none;
}

.auth-form-header {
      margin-bottom: 2rem;
}

.auth-form-header h3 {
      font-size: 1.6rem;
      font-weight: 700;
      color: #e0eeff;
      margin-bottom: 6px;
}

.auth-form-header p {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.45);
}

/* ── Form fields ── */
.form-group {
      margin-bottom: 18px;
}

.form-group label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.7);
      margin-bottom: 7px;
      display: flex;
      align-items: center;
      gap: 7px;
}

.form-group label i {
      color: #3f6ea0;
      font-size: 12px;
}

.form-group input {
      width: 100%;
      padding: 11px 14px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 10px;
      color: #fff;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
}

.form-group input::placeholder {
      color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus {
      border-color: rgba(122, 184, 245, 0.5);
      background: rgba(255, 255, 255, 0.09);
}

/* Password wrapper */
.input-password-wrap {
      position: relative;
}

.input-password-wrap input {
      padding-right: 42px;
}

.toggle-pw {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.35);
      cursor: pointer;
      font-size: 14px;
      padding: 2px;
      transition: color 0.2s;
}

.toggle-pw:hover {
      color: rgba(255, 255, 255, 0.7);
}

/* Password strength bar */
.pw-strength {
      height: 3px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 99px;
      margin-top: 8px;
      overflow: hidden;
}

.pw-bar {
      height: 100%;
      border-radius: 99px;
      width: 0;
      transition: width 0.3s, background 0.3s;
}

.pw-hint {
      display: block;
      font-size: 11px;
      color: rgba(255, 255, 255, 0.3);
      margin-top: 5px;
}

/* ── Submit button ── */
.auth-btn {
      width: 100%;
      padding: 12px;
      background: linear-gradient(135deg, #3f6ea0, #2d5080);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-size: 15px;
      font-weight: 600;
      font-family: 'Poppins', sans-serif;
      cursor: pointer;
      margin-top: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: opacity 0.2s, transform 0.15s;
      box-shadow: 0 4px 20px rgba(63, 110, 160, 0.35);
}

.auth-btn:hover {
      opacity: 0.9;
      transform: translateY(-1px);
}

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

/* ── Switch link ── */
.auth-switch {
      text-align: center;
      margin-top: 20px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.4);
}

.auth-switch a {
      color: #7ab8f5;
      font-weight: 500;
      text-decoration: none;
}

.auth-switch a:hover {
      text-decoration: underline;
}

/* ── Toast ── */
.auth-toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: #1f3042;
      color: #fff;
      padding: 12px 22px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 500;
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s;
      border: 1px solid rgba(122, 184, 245, 0.25);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
      display: flex;
      align-items: center;
      gap: 8px;
      max-width: 340px;
      text-align: center;
}

.auth-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
}

.auth-toast.error {
      border-color: rgba(197, 48, 48, 0.5);
      background: #3d1515;
}

.auth-toast.success {
      border-color: rgba(45, 125, 50, 0.5);
      background: #0e2912;
}

/* ── Responsive ── */
@media (max-width: 768px) {
      .auth-wrapper {
            flex-direction: column;
      }

      .auth-left {
            padding: 90px 28px 40px;
            min-height: auto;
      }

      .auth-left::after {
            display: none;
      }

      .auth-right {
            padding: 20px 28px 60px;
            flex: none;
      }

      .auth-left-content {
            text-align: center;
      }

      .auth-stats {
            justify-content: center;
      }
}

@media (max-width: 480px) {
      .auth-left {
            padding: 80px 20px 30px;
      }

      .auth-right {
            padding: 16px 20px 50px;
      }
}