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

:root {
  --brand: #0057ff;
  --brand-deep: #0040cc;
  --brand-glow: rgba(0, 87, 255, 0.18);
  --accent: #00c2a8;
  --surface: #ffffff;
  --surface-2: #f5f7ff;
  --border: #e4e9f5;
  --text-main: #111827;
  --text-sub: #6b7280;
  --text-placeholder: #9ca3af;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --success: #10b981;
  --radius: 14px;
  --shadow-card:
    0 24px 60px rgba(0, 50, 180, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

 html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: var(--text-main);
      background: #EDF0FB;
      overflow: hidden;
    }

    .page-wrap {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      height: 100vh;
    }

.left-panel {
  width: 100%;
}

.box-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-panel {
  flex: 1 1 auto;
  min-width: 340px;
}

@media (max-width: 860px) {
  .page-wrap {
    flex-direction: column;
    min-width: unset;
  }

  .left-panel {
    flex: none;
    width: 100%;
  }
}

.left-panel {
  position: relative;
  background: linear-gradient(145deg, #001766 0%, #0038b8 55%, #0057ff 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
}
.left-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 80% 30%,
      rgba(0, 194, 168, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 40% 40% at 20% 80%,
      rgba(0, 87, 255, 0.4) 0%,
      transparent 60%
    );
  pointer-events: none;
}
.left-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.brand-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.brand-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}
.brand-logo-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}
.brand-logo-text span {
  color: var(--accent);
}

.brand-logo-secondary {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: auto 0 auto 12px;
}

.brand-logo-icon-secondary {
  width: 50px;
  height: 50px;
  background: rgba(0, 87, 255, 0.08);
  border: 1px solid rgba(0, 87, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.brand-logo-icon-secondary svg {
  width: 30px;
  height: 30px;
  fill: var(--brand);
}

.brand-logo-text-secondary {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color:var(--brand);
  letter-spacing: -0.3px;
}

.brand-logo-text-secondary span {
  color: var(--brand);
}

.brand-logo-text-secondary span {
  color: var(--accent);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 194, 168, 0.15);
  border: 1px solid rgba(0, 194, 168, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 24px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-title {
  font-family: "Sora", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 40px;
}

.stat-row {
  width: 520px;
  display: flex;
  gap: 16px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  flex: 1;
}
.stat-card-num {
  font-family: "Sora", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-card-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ticket-preview {
  position: absolute;
  top: 20%;
  right: 60px;
  width: 240px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(16px);
  animation: float 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.ticket-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ticket-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-open {
  background: #fbbf24;
}
.ticket-preview-id {
  font-family: "Sora", sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.ticket-preview-title {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}
.ticket-preview-tag {
  display: inline-block;
  background: rgba(0, 194, 168, 0.2);
  color: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
}

.right-panel {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  position: relative;
  overflow-y: auto;
}
.right-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(0, 87, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.form-header {
  margin-bottom: 36px;
}
.form-title {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.field-wrap {
  position: relative;
}
.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-placeholder);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.2s;
}
.field-wrap:focus-within .field-icon {
  color: var(--brand);
}

.field-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s;
  outline: none;
}
.field-input::placeholder {
  color: var(--text-placeholder);
}
.field-input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.field-input.error-field {
  border-color: var(--error);
  background: var(--error-bg);
}

.pass-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-placeholder);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s;
}
.pass-toggle:hover {
  color: var(--brand);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--error-bg);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 500;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-row-links {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: -4px;
}
.link-forgot {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s;
}
.link-forgot:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.btn-submit {
  height: 50px;
  width: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, #0040cc 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 87, 255, 0.35);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.register-cta {
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
.register-cta a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.register-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .brand-logo-secondary {
    display: flex;
  }
  .page-wrap {
    grid-template-columns: 1fr;
  }
  .left-panel {
    display: none;
  }
  .right-panel {
    padding: 40px 28px;
  }
}

@media (max-width: 1150px) {
  .ticket-preview {
  position: absolute;
  top: 5%;
  right: 20px;
  }
  .stat-row {
    width: 400px;
  }
}
