/* ===========================
   Shared design tokens
   =========================== */
:root {
  --green: #84bd3a;
  --green-dark: #76aa33;
  --facebook: #1877f2;
  --text: #4a4a4a;
  --text-soft: #7a7a7a;
  --border: #e3e3e3;
  --link: #2196f3;
  --bg: #f6f7f9;
  --white: #ffffff;
  --danger: #e53935;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===========================
   Top utility bar (Image 2)
   =========================== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
}
.top-bar .currency {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.top-bar .flag {
  width: 22px;
  height: 16px;
  background: linear-gradient(180deg, #00247d 50%, #cf142b 50%);
  border-radius: 2px;
  display: inline-block;
}
.top-bar .phone {
  color: #e53935;
  font-weight: 700;
}
.top-bar .link {
  color: var(--text);
  cursor: pointer;
}
.top-bar .link:hover {
  color: var(--link);
}
.nav-bar {
  background: #0d0d0d;
  color: #cfcfcf;
  padding: 16px 28px;
  display: flex;
  gap: 32px;
  font-size: 15px;
}
.nav-bar span {
  cursor: pointer;
}
.nav-bar span:hover {
  color: var(--white);
}

/* ===========================
   Card / Modal
   =========================== */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  background: var(--white);
  border-radius: 6px;
  width: 100%;
  max-width: 430px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
}

.card h1,
.card h2 {
  text-align: center;
  margin: 0 0 6px;
  color: #2f2f2f;
}

.card h1 {
  font-size: 24px;
  font-weight: 700;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-dark);
}
.btn-facebook {
  background: var(--facebook);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.btn-facebook:hover {
  background: #166fde;
}
.btn-google {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.btn-google:hover {
  background: #fafafa;
}

/* ===========================
   Inputs
   =========================== */
.field {
  position: relative;
  margin: 22px 0 4px;
}
.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c8c8c8;
  padding: 10px 36px 8px 0;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus {
  border-bottom-color: var(--green);
}
.field input::placeholder {
  color: #b0b0b0;
}
.field .input-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  color: var(--text-soft);
}
.field .input-icon .chip {
  width: 22px;
  height: 22px;
  background: #2196f3;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

/* ===========================
   Divider with text
   =========================== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
  margin: 22px 0 4px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8d8d8;
}

/* ===========================
   Helpers
   =========================== */
.row {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 18px;
}
.tiny-link {
  font-size: 14px;
  color: var(--link);
  cursor: pointer;
}
.tiny-link:hover {
  text-decoration: underline;
}
.stack > * + * {
  margin-top: 12px;
}
.muted {
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

/* ===========================
   Modal styling (Image 2)
   =========================== */
.modal-wrap {
  position: relative;
}
.modal-card {
  max-width: 460px;
  padding: 28px 30px 26px;
}
.modal-card .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-card h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #2f2f2f;
}
.modal-card .back {
  font-size: 22px;
  color: #b5b5b5;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.modal-card .back:hover {
  color: var(--text);
}
.modal-card p.lead {
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
}

/* Pointer triangle at top of modal */
.modal-pointer {
  position: absolute;
  top: -10px;
  right: 60px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--white);
}

/* ===========================
   Email layout (Image 3)
   =========================== */
.email-shell {
  max-width: 720px;
  margin: 30px auto;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.email-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 36px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.email-header .support {
  text-align: right;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.brand-logo {
  display: inline-block;
  width: 150px;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}
.brand-logo.sm {
  width: 110px;
}
.brand-logo.lg {
  width: 200px;
}
.email-body {
  padding: 0 36px 36px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.email-illustration {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}
.email-body h2 {
  text-align: center;
  font-size: 22px;
  margin: 12px 0 24px;
  color: #2f2f2f;
}
.email-body .greeting {
  font-weight: 700;
  margin: 0 0 14px;
}
.email-body p {
  margin: 0 0 16px;
}
.email-body .cta-wrap {
  text-align: center;
  margin: 26px 0;
}
.email-body .cta-wrap a.btn-primary {
  display: inline-block;
  width: auto;
  padding: 16px 38px;
  text-decoration: none;
}
.email-body .signoff {
  margin-top: 22px;
}
.email-body a.inline {
  color: var(--link);
}

/* ===========================
   Reset password page (Image 4)
   =========================== */
.reset-card {
  max-width: 340px;
  padding: 26px 28px 28px;
}
.reset-card .brand-wrap {
  text-align: center;
  display: block;
  width: 100%;
  margin-bottom: 18px;
}
.reset-card .brand-wrap img,
.reset-card .brand-wrap .brand-logo {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}
.reset-card h1 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #2f2f2f;
}
.reset-card .sub {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px;
}

.field-label {
  font-size: 13px;
  color: var(--danger);
  margin-top: 18px;
}
.field-help {
  font-size: 12px;
  color: var(--danger);
  margin: 6px 0 0;
  line-height: 1.4;
}

.security-note {
  background: #f3faea;
  border-left: 3px solid var(--green);
  color: #4a5b2c;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 4px;
  margin: 18px 0 4px;
  line-height: 1.45;
}

.username-block {
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0 4px;
  text-align: center;
}
.username-block .label {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.username-block .value {
  font-size: 22px;
  font-weight: 700;
  color: #2f2f2f;
  letter-spacing: 0.3px;
  word-break: break-all;
}

/* small icon (eye) */
.eye {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  display: inline-block;
  vertical-align: middle;
}

/* Hide scrollbar gracefully */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: #d6d6d6;
  border-radius: 4px;
}
