/* OCI Vision login - dark only, mockup layout */

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

html, body {
  margin: 0;
  padding: 0;
}

.ov-login {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #f8fafc;
  background: #000;
  overflow-x: hidden;
  --ov-text: #f8fafc;
  --ov-muted: #94a3b8;
  --ov-card-bg: rgba(8, 12, 24, 0.88);
  --ov-card-border: rgba(148, 163, 184, 0.12);
  --ov-card-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --ov-input-bg: rgba(4, 7, 16, 0.95);
  --ov-input-border: rgba(148, 163, 184, 0.18);
}

.ov-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000 url("/assets/images/login-bg-dark.png") center center / cover no-repeat;
}

.ov-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 72px) 40px clamp(24px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
}

/* ── Left: full hero artwork ── */
.ov-login-hero {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-login-hero-art {
  width: min(36vw, 560px);
  max-width: 100%;
  line-height: 0;
}

.ov-login-hero-art .brand-logo {
  width: 100%;
  height: auto;
  max-height: min(48vh, 320px);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

/* ── Right: login card ── */
.ov-login-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  background: var(--ov-card-bg);
  border: 1px solid var(--ov-card-border);
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow: var(--ov-card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ov-card-title {
  margin: 0 0 6px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ov-text);
}

.ov-card-sub {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--ov-muted);
  line-height: 1.5;
}

.ov-form {
  display: grid;
  gap: 16px;
}

.ov-form[hidden],
#resend-verify-prompt[hidden] {
  display: none !important;
}

.ov-field {
  display: grid;
  gap: 7px;
}

.ov-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ov-text);
}

.ov-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ov-input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--ov-muted);
  pointer-events: none;
}

.ov-input-wrap input {
  width: 100%;
  border: 1px solid var(--ov-input-border);
  background: var(--ov-input-bg);
  color: var(--ov-text);
  border-radius: 10px;
  padding: 12px 42px 12px 40px;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ov-input-wrap input:only-child {
  padding: 12px 14px;
}

.ov-input-wrap input::placeholder {
  color: #64748b;
}

.ov-input-wrap input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ov-toggle-pw {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--ov-muted);
  cursor: pointer;
  padding: 6px;
  display: grid;
  place-items: center;
}

.ov-toggle-pw svg {
  width: 17px;
  height: 17px;
}

.ov-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.ov-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ov-muted);
  cursor: pointer;
}

.ov-check input {
  width: 15px;
  height: 15px;
  accent-color: #3b82f6;
}

.ov-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
}

.ov-link:hover { text-decoration: underline; }

.ov-btn-primary {
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ov-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.42);
}

.ov-switch-auth {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ov-muted);
}

.ov-link-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #3b82f6;
  cursor: pointer;
}

.ov-link-btn:hover { text-decoration: underline; }

.ov-auth-status {
  text-align: center;
  margin-top: 10px;
  font-size: 0.88rem;
  color: #f59e0b;
}

.ov-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ov-input-border);
  font-size: 0.72rem;
  color: var(--ov-muted);
}

.ov-card-footer svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .ov-login-shell {
    flex-direction: column;
    justify-content: center;
    padding: 48px 24px;
  }

  .ov-login-hero {
    justify-content: center;
    width: 100%;
  }

  .ov-login-hero-art {
    width: min(440px, 88vw);
  }

  .ov-login-card {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .ov-login-shell {
    padding: 32px 20px;
  }

  .ov-login-hero-art {
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .ov-login-hero-art {
    width: min(40vw, 620px);
  }
}
