/* ---- Reset & base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* ---- Dark background ---- */
#background {
  width: 100vw;
  height: 100vh;
  background-color: #111111;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

/* ---- Shared modal base ---- */
.modal {
  background-color: #2d2d2d;
  border-radius: 16px;
  width: 400px;
  position: relative;
  color: white;
}

/* ================================ */
/* MODAL 1 styles                   */
/* ================================ */
#modal-main {
  padding: 40px 32px;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

p {
  color: #aaaaaa;
  font-size: 14px;
  margin-bottom: 24px;
}

.option-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  background-color: #1a1a1a;
  color: white;
  border: 1px solid #444;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.option-btn:hover {
  background-color: #333;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: #888;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #444;
}

#email-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: 1px solid #444;
  background-color: #1a1a1a;
  color: white;
  font-size: 15px;
  margin-bottom: 10px;
  outline: none;
}

.continue-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background-color: white;
  color: black;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.continue-btn:hover {
  background-color: #e0e0e0;
}

/* ================================ */
/* MODAL 2 & 3 — Google style       */
/* ================================ */
.google-modal {
  width: 860px;
  padding: 0;
  overflow: hidden;
  background-color: #1e1e1e;
}

.google-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #333;
  font-size: 14px;
  color: #ccc;
  background-color: #1e1e1e;
  border-radius: 16px 16px 0 0;
}

.google-body {
  display: flex;
  min-height: 360px;
  background-color: #161616;
}

/* Left side */
.google-left {
  width: 38%;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-logo {
  width: 52px;
  height: 52px;
  background: #111;
  border: 1px solid #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.google-left h2 {
  font-size: 28px;
  font-weight: 400;
  color: white;
}

.google-sub {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}

.google-email-show {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
  margin: 0;
}

/* Right side */
.google-right {
  width: 62%;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Bordered input with floating label — matches ChatGPT */
.google-input-group {
  position: relative;
  margin-bottom: 8px;
}

.google-input-group label {
  position: absolute;
  top: -10px;
  left: 12px;
  background-color: #161616;
  padding: 0 4px;
  font-size: 12px;
  color: #8ab4f8;
}

.google-input-group input {
  width: 100%;
  background: transparent;
  border: 1px solid #8ab4f8;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  padding: 14px 12px;
  outline: none;
}

.google-input-group input:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 1px #8ab4f8;
}

/* Forgot email link */
.forgot-link {
  color: #8ab4f8;
  font-size: 13px;
  text-decoration: none;
  margin-top: 8px;
  display: inline-block;
}

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

/* Small grey info text */
.google-info-text {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

.google-info-text a {
  color: #8ab4f8;
  text-decoration: none;
}

.show-password-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  color: #ccc;
}

.show-password-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #8ab4f8;
}

/* Bottom row: secondary link + Next button */
.google-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.google-secondary-link {
  color: #8ab4f8;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.google-secondary-link:hover {
  text-decoration: underline;
}

.google-next-btn {
  background-color: #8ab4f8;
  color: #111;
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.google-next-btn:hover {
  background-color: #a8c7fa;
}

/* Footer links below the modal */
.google-footer {
  display: flex;
  justify-content: space-between;
  width: 860px;
  padding: 0 4px;
  font-size: 12px;
  color: #888;
}

.google-footer a {
  color: #888;
  text-decoration: none;
}

.google-footer a:hover {
  text-decoration: underline;
}

.google-footer-right {
  display: flex;
  gap: 20px;
}