/* ── 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/login.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;
}

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

/* ── 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: 23px;
}

/* ── 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;
}

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

/* ── 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;
}

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

/* ══════════════════════════════════════
   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-main {
    width: 100%;
    max-width: 374px;
    margin: auto;
  }

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

/* ── 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; }
