/* style.css */
:root {
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --green: #188038;
  --green-soft: #e6f4ea;
  --red: #d93025;
  --red-soft: #fce8e6;
  --yellow-soft: #fff8e1;
  --text: #202124;
  --subtext: #5f6368;
  --border: #dadce0;
  --border-soft: #e8eaed;
  --bg: #f8f9fa;
  --card: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
}

.container {
  max-width: 1080px;
}

.hero-section,
.main-card,
.disclaimer-card {
  border-radius: 28px;
}

.hero-section {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 1.6rem 1.5rem;
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .85rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.hero-subtitle {
  color: var(--subtext);
  font-size: 1rem;
  line-height: 1.6;
}

.notice-float {
  position: absolute;
  top: 16px;
  right: 16px;
}

.notice-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #9a6700;
  border: 1px solid #f3d68a;
  text-decoration: none;
  font-size: .88rem;
}

.notice-link:hover {
  background: #fff3cd;
  color: #7a5200;
}

.main-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
}

.section-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-title i {
  color: var(--blue);
}

.otp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-control {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .95rem 1rem;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26,115,232,.12);
}

.save-box {
  background: #f8f9fa;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  min-height: 58px;
  display: flex;
  align-items: center;
}

.btn {
  border-radius: 999px;
  font-weight: 500;
  padding: .65rem 1.15rem;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #1765cc;
  border-color: #1765cc;
}

.btn-outline-primary {
  color: var(--blue);
  border-color: var(--border);
  background: #fff;
}

.btn-outline-primary:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.btn-outline-secondary {
  color: var(--subtext);
  border-color: var(--border);
  background: #fff;
}

.btn-outline-secondary:hover {
  color: var(--text);
  background: #f1f3f4;
  border-color: #d2d5d9;
}

.btn-outline-danger {
  color: var(--red);
  border-color: var(--border);
  background: #fff;
}

.btn-outline-danger:hover {
  color: #b3261e;
  background: #fdecea;
  border-color: #f3c4c0;
}

.otp-card {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  height: 100%;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.otp-card:hover {
  border-color: #dde1e5;
  box-shadow: 0 2px 8px rgba(60,64,67,.08);
}

.otp-card-inner {
  padding: 1.2rem;
}

.otp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.otp-title {
  font-size: 1rem;
  font-weight: 700;
}

.otp-subtitle {
  color: var(--subtext);
  font-size: .88rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

.status-saved {
  background: var(--green-soft);
  color: var(--green);
}

.status-temp {
  background: var(--red-soft);
  color: var(--red);
}

.otp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.meta-pill {
  background: #f1f3f4;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .8rem;
}

.otp-code-wrap {
  margin-top: 1rem;
  background: #f8f9fa;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 1rem;
}

.otp-code {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: .8rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #dadce0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #4285f4, #34a853);
}

.otp-timer {
  margin-top: .7rem;
  color: var(--subtext);
  font-size: .88rem;
}

.otp-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.disclaimer-card {
  background: var(--yellow-soft);
  border: 1px solid #f3d68a;
  padding: 1.8rem;
  color: #5f370e;
}

.disclaimer-icon {
  color: #c58b00;
  font-size: 1.4rem;
  margin-top: .2rem;
}

.toast-chip-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #202124;
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.toast-chip.success i {
  color: #81c995;
}

.toast-chip.error i {
  color: #f28b82;
}

@media (max-width: 768px) {
  .notice-float {
    position: static;
    margin-bottom: 1rem;
    text-align: center;
  }

  .otp-header {
    flex-direction: column;
    align-items: stretch;
  }

  .otp-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .otp-code {
    font-size: 1.6rem;
    letter-spacing: .12em;
  }
}