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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

body {
  display: flex;
  background: #070707;
}

/* ── Photo panel ── */
.ob-photo {
  flex: 0 0 55.2%;
  min-height: 100vh;
  background-image: url('images/register.jpeg');
  background-size: cover;
  background-position: center top;
}

/* ── Dark form panel ── */
.ob-panel {
  flex: 1;
  min-height: 100vh;
  background: linear-gradient(to bottom, #121212, #070707);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.ob-step {
  display: none;
  width: 374px;
  flex-direction: column;
  gap: 28px;
}

.ob-step.active { display: flex; }

#step-prepared.active {
  align-items: center;
  justify-content: center;
}

/* ── Content block ── */
.ob-main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
}

/* ── Heading ── */
.ob-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ob-title {
  font-size: 32px;
  font-weight: 700;
  color: rgba(253, 253, 253, 0.99);
  line-height: 1.15;
}

.ob-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #717171;
  line-height: 1.4;
}

/* ── Fields ── */
.ob-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Field group */
.ob-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ob-label {
  font-size: 13px;
  font-weight: 500;
  color: #f5f5f5;
}

/* Two-column row */
.ob-row {
  display: flex;
  gap: 23px;
  width: 100%;
}

/* ── Input wrapper ── */
.ob-input-wrap {
  position: relative;
  width: 100%;
}

.ob-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.ob-input {
  width: 100%;
  height: 46px;
  padding: 15px 20px;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgba(253, 253, 253, 0.99);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.ob-input.has-icon { padding-left: 46px; }
.ob-input.has-eye  { padding-right: 44px; }

.ob-input::placeholder { color: #717171; }
.ob-input:focus { border-color: rgba(253, 253, 253, 0.4); }

/* ── Eye toggle ── */
.ob-eye-btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

/* ── Helper text ── */
.ob-helper {
  font-size: 13px;
  font-weight: 500;
  color: #717171;
}

.ob-helper--success { color: #6a9b6a; }
.ob-helper--error   { color: #d80027; }

/* ── Error ── */
.ob-error {
  font-size: 12px;
  font-weight: 500;
  color: #d80027;
  margin-top: -8px;
}

/* ── Button ── */
.ob-btn {
  width: 100%;
  padding: 16px 0;
  background: rgba(253, 253, 253, 0.99);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 3px;
}

.ob-btn:hover  { opacity: 0.92; }
.ob-btn:active { transform: scale(0.99); }
.ob-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Switch link ── */
.ob-switch {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: rgba(253, 253, 253, 0.99);
}

.ob-switch-muted { color: #717171; }

.ob-switch-link {
  color: rgba(253, 253, 253, 0.99);
  text-decoration: none;
  transition: opacity 0.2s;
}

.ob-switch-link:hover { opacity: 0.7; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .ob-photo { flex: 0 0 40%; }
}

@media (max-width: 767px) {
  .ob-photo { display: none; }

  .ob-panel {
    padding: 48px 24px 40px;
    align-items: flex-start;
    min-height: 100svh;
  }

  .ob-step {
    width: 100%;
    max-width: 374px;
    margin: auto;
  }

  .ob-title { font-size: 26px; }
}

@media (max-width: 400px) {
  .ob-row { flex-direction: column; }
}

/* ══════════════════════════════════════
   LOGO UPLOAD
══════════════════════════════════════ */
.ob-logo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  height: 113px;
  border: 1px dashed #3d3d3d;
  border-radius: 11px;
  background: #111;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ob-logo-upload:hover { border-color: #717171; }

.ob-logo-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.ob-logo-upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  pointer-events: none;
}

.ob-logo-upload-title {
  font-size: 13px;
  font-weight: 500;
  color: #717171;
  text-align: center;
}

.ob-logo-upload-hint {
  font-size: 13px;
  font-weight: 500;
  color: #3d3d3d;
  text-align: center;
  line-height: 1.5;
}

.ob-logo-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   QR LINK PREVIEW
══════════════════════════════════════ */
.ob-qr-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  overflow: hidden;
  height: 46px;
}

.ob-qr-prefix {
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: linear-gradient(to bottom, #121212, #070707);
  border-right: 1px solid #3d3d3d;
  font-size: 13px;
  font-weight: 500;
  color: #717171;
  white-space: nowrap;
  flex-shrink: 0;
}

.ob-qr-value {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 500;
  color: #717171;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════
   BEING PREPARED
══════════════════════════════════════ */
.ob-prepared {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  text-align: center;
  max-width: 321px;
}

.ob-spinner {
  width: 65px;
  height: 65px;
  border: 3px solid rgba(253, 253, 253, 0.15);
  border-top-color: rgba(253, 253, 253, 0.99);
  border-radius: 50%;
  animation: ob-spin 1s linear infinite;
  flex-shrink: 0;
}

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

.ob-prepared-title {
  font-size: 32px;
  font-weight: 700;
  color: rgba(253, 253, 253, 0.99);
  line-height: 1.2;
}
