/* =====================================================
   FILE: assets/css/auth.css
   FUNGSI: Styling halaman login, register, lupa password
   ===================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: #0c0a1a;
  color: #f0f0ff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ct-root {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: #0c0a1a;
  display: flex;
  flex-direction: column;
}

.ct-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.ct-glow-1 {
  top: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: #6366f1;
}
.ct-glow-2 {
  top: 120px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: #ec4899;
}
.ct-glow-3 {
  bottom: 100px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: #0ea5e9;
}

.ct-hero {
  padding: 48px 28px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ct-emoji-big {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* CuanTruck brand mark: transparent PNG, medium size, softly animated. */
.ct-logo-mark {
  width: 172px;
  height: 58px;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: logoFloat 3.6s ease-in-out infinite;
}
.ct-brand-logo {
  width: 172px;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.18));
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (max-width: 520px) {
  .ct-logo-mark {
    width: 150px;
    height: 96px;
  }
  .ct-brand-logo {
    width: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-logo-mark {
    animation: none !important;
  }
}

.ct-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.ct-title span {
  color: #818cf8;
}
.ct-subtitle {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

.ct-tabs {
  display: flex;
  margin: 0 24px 20px;
  background: #1a1625;
  border-radius: 16px;
  padding: 4px;
  position: relative;
  z-index: 1;
}
.ct-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: transparent;
  font-family: inherit;
}
.ct-tab.active {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.ct-form-wrap {
  flex: 1;
  padding: 0 24px 24px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}
.ct-form-wrap::-webkit-scrollbar {
  display: none;
}
.ct-form {
  display: none;
}
.ct-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ct-input-group {
  margin-bottom: 16px;
}
.ct-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.ct-input-wrap {
  position: relative;
}
.ct-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}
.ct-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.ct-input::placeholder {
  color: #64748b;
}

.ct-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  color: #a5b4fc;
  padding: 6px 4px;
}
.ct-toggle-pass:hover {
  opacity: 1;
}

.ct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ct-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
}
.ct-remember input {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
}
.ct-forgot {
  font-size: 13px;
  color: #818cf8;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.ct-forgot:hover {
  text-decoration: underline;
}

.ct-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.ct-btn-primary {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.ct-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}

.ct-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
  animation: shake 0.3s ease;
}
.ct-success {
  padding: 12px 16px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #34d399;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.ct-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: #475569;
  position: relative;
  z-index: 1;
}

/* Modal */
.ct-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ct-modal-overlay.active {
  display: flex;
}
.ct-modal {
  background: #1a1625;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ct-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.ct-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}
.ct-modal-desc {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.ct-legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
  cursor: pointer;
}
.ct-legal-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #6366f1;
  cursor: pointer;
}
.ct-legal-consent span {
  min-width: 0;
}
.ct-legal-consent a {
  color: #a5b4fc;
  text-decoration: none;
}
.ct-legal-consent a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.ct-footer a {
  color: #818cf8;
  text-decoration: none;
}
.ct-footer a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}
