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

/* ===== BASE ===== */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1f1f1f;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.ok-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}

.ok-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.ok-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ok-search-wrap {
  flex: 1;
  max-width: 540px;
}

.ok-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.ok-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  padding: 0 40px 0 16px;
  font-size: 14px;
  color: #1f1f1f;
  background: #f5f5f5;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.ok-search-input::placeholder { color: #9e9e9e; }
.ok-search-input:focus {
  background: #fff;
  border-color: #FF7700;
}

.ok-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9e9e9e;
  display: flex;
  align-items: center;
  padding: 0;
}

.ok-header-right {
  margin-left: auto;
  flex-shrink: 0;
}

.ok-grid-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9e9e9e;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s;
}

.ok-grid-btn:hover { color: #FF7700; }

/* ===== MAIN ===== */
.ok-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

/* ===== BACKGROUND CIRCLES ===== */
.ok-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ok-circle {
  position: absolute;
  border-radius: 50%;
  border: 64px solid #f5e6d3;
}

.ok-circle-1 {
  width: 760px;
  height: 760px;
  left: -240px;
  top: 50%;
  transform: translateY(-50%);
}

.ok-circle-2 {
  width: 560px;
  height: 560px;
  left: -140px;
  top: 50%;
  transform: translateY(-50%);
}

.ok-circle-3 {
  width: 360px;
  height: 360px;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

/* ===== CARD ===== */
.ok-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
  padding: 40px 48px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* ===== BACK BUTTON ===== */
.ok-back-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.ok-back-btn:hover { opacity: 0.6; }

/* ===== LOGO ===== */
.ok-phone-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

/* ===== TITLE / SUBTITLE ===== */
.ok-card-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #1f1f1f;
  margin-bottom: 8px;
}

.ok-card-sub {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ===== FORM ===== */
.ok-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ok-input-wrap {
  position: relative;
}

.ok-input {
  width: 100%;
  height: 50px;
  border: 1.5px solid #d9d9d9;
  border-radius: 25px;
  padding: 0 22px;
  font-size: 16px;
  color: #1f1f1f;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  letter-spacing: 0.02em;
}

.ok-input::placeholder { color: #b0b0b0; }

.ok-input:focus { border-color: #FF7700; }

.ok-input--warn { border-color: #e88000; }

/* ===== HINT ===== */
.ok-field-hint {
  font-size: 12px;
  color: #e88000;
  text-align: center;
  margin-top: -4px;
}

/* ===== BUTTON ===== */
.ok-btn {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.ok-btn--primary {
  background: #FF7700;
  color: #fff;
}

.ok-btn--primary:hover:not(:disabled) { background: #e56a00; }

.ok-btn--primary:disabled {
  background: #ffc480;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
.ok-footer {
  padding: 20px 16px;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

.ok-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-bottom: 10px;
}

.ok-footer-link {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.ok-footer-link:hover { color: #FF7700; }

.ok-footer-copy {
  font-size: 11px;
  color: #9e9e9e;
  margin-bottom: 4px;
}

.ok-footer-info {
  font-size: 11px;
  color: #9e9e9e;
  text-decoration: none;
}

.ok-footer-info:hover { color: #FF7700; }

/* ===== TABLET ===== */
@media (max-width: 899px) {
  .ok-card {
    padding: 36px 36px 40px;
    max-width: 400px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 599px) {
  .ok-header-inner { padding: 0 16px; }

  .ok-main {
    padding: 28px 16px;
    align-items: flex-start;
  }

  .ok-circle-1 { width: 500px; height: 500px; left: -180px; }
  .ok-circle-2 { width: 360px; height: 360px; left: -110px; }
  .ok-circle-3 { width: 230px; height: 230px; left: -50px; }

  .ok-card {
    padding: 28px 20px 32px;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  }

  .ok-footer-nav { gap: 4px 8px; }
}
