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

:root {
  --page-bg: #f3f4f6;
  --panel-bg: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #d1d5db;
  --brand-teal: #00b5ad;
  --brand-blue: #4a7fd8;
  --brand-blue-hover: #3d6fc4;
  --hero-radius: 18px;
  --page-padding: 14px;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--page-bg);
}

/* Left panel — ~68.5% */
.hero-panel {
  flex: 0 0 68.5%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--page-padding);
  padding-right: 0;
  min-width: 0;
}

.hero-card {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  margin-bottom: 12px;
  border-radius: var(--hero-radius);
  overflow: hidden;
  background: #eef4fb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.event-bar {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 55px 55px;
  background: var(--panel-bg);
  border-radius: 12px;
}

.event-bar__left {
  flex-shrink: 0;
  min-width: 50%;
}

.event-bar__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.event-bar__subtitle {
  margin-top: 2px;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}

.event-bar__divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: #e5e7eb;
}

.event-bar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.event-bar__date {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  white-space: nowrap;
}

.event-bar__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
  white-space: nowrap;
}

.event-bar__pin {
  flex-shrink: 0;
}

.event-bar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.event-bar__cta:hover {
  background: var(--brand-blue-hover);
}

/* Right panel — ~31.5% */
.login-panel {
  flex: 0 0 31.5%;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel-bg);
  min-width: 280px;
  margin-left: var(--page-padding);
}

.login-panel__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px 24px;
}

.login-panel__content--center {
  text-align: center;
}

.login-panel__content--loading {
  pointer-events: none;
}

.login-panel__logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 100%;
  margin: 0 auto 52px;
}

.login-form {
  width: 100%;
  margin: 0 auto;
}

.login-form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-secondary);
}

.login-form__input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #818181;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form__input::placeholder {
  color: #c4c9d1;
}

.login-form__input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(74, 127, 216, 0.12);
}

.login-form__submit {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 22px;
  border: none;
  border-radius: 4px;
  background: var(--brand-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.login-form__submit:hover:not(:disabled) {
  background: var(--brand-blue-hover);
}

.login-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-form__error {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #dc2626;
}

.panel-loading[hidden] {
  display: none !important;
}

.panel-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}

.panel-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: tekion-spin 0.8s linear infinite;
}

.panel-loading__text {
  font-size: 14px;
  color: var(--text-secondary);
}

@keyframes tekion-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-screen {
  width: 100%;
  text-align: center;
}

.auth-screen__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
}

.auth-screen__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.auth-screen__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.auth-form {
  margin-top: 28px;
  text-align: left;
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-form__row-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-form__resend {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
  cursor: pointer;
}

.auth-form__resend:hover {
  text-decoration: underline;
}

.auth-form__submit {
  margin-top: 20px;
}

.auth-screen__back {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.auth-screen__back:hover {
  text-decoration: underline;
}

.password-field {
  position: relative;
  margin-bottom: 0;
}

.password-field__input {
  padding-right: 42px;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
}

.password-field__toggle:hover {
  color: #374151;
}

.password-field__toggle .icon-eye[hidden] {
  display: none;
}

.success-screen {
  width: 100%;
  text-align: center;
}

.success-screen__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.success-screen__lead {
  margin: 12px 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.success-screen__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 200px;
  padding: 0 24px;
  text-decoration: none;
}

.login-footer {
  flex-shrink: 0;
  padding: 24px 32px 28px;
  text-align: center;
}

.login-footer__help {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
}

.login-footer__help a {
  color: var(--brand-blue);
  font-weight: 500;
  text-decoration: none;
}

.login-footer__help a:hover {
  text-decoration: underline;
}

.login-footer__copy {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
  }

  .hero-panel,
  .login-panel {
    flex: none;
    width: 100%;
    height: auto;
  }

  .hero-panel {
    min-height: 60vh;
    padding-right: var(--page-padding);
  }

  .hero-card {
    flex: 1 1 auto;
    min-height: 220px;
  }

  .event-bar {
    flex-wrap: wrap;
    gap: 16px;
  }

  .event-bar__divider {
    display: none;
  }

  .login-panel__content {
    padding-top: 40px;
  }
}
