* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f2f2f2;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f2f2f2;
  position: relative;
}

/* ---------- Header ---------- */

.header {
  background: #0b0b0d;
  height: 420px;
  border-bottom-right-radius: 140px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-wrap {
  text-align: center;
  z-index: 2;
}

.logo-icon {
  font-size: 92px;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, #f7d98a 0%, #d4a94a 55%, #b8862f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -6px;
}

.logo-text {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #f7d98a 0%, #d4a94a 55%, #b8862f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Form card ---------- */

.form-card {
  background: #fff;
  border-radius: 22px;
  margin: -80px 22px 0 22px;
  padding: 26px 22px 30px 22px;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}

.alert-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6c2;
}

.alert-success {
  background: #eafaf0;
  color: #1e8449;
  border: 1px solid #b7ecc7;
}

.input-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #cfcfcf;
  border-radius: 30px;
  padding: 14px 20px;
  margin-bottom: 18px;
}

.input-field input {
  border: none;
  outline: none;
  font-size: 18px;
  flex: 1;
  background: transparent;
}

.phone-field .country-code {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.phone-field .divider {
  width: 1px;
  height: 22px;
  background: #d8d8d8;
  margin: 0 14px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
}

.link-plain {
  color: #1a1a1a;
  text-decoration: underline;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cfcfcf;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.check-label input[type="checkbox"]:checked {
  background: #2145f7;
  border-color: #2145f7;
}

.check-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agree-row {
  margin-bottom: 22px;
}

.link-underline {
  color: #333;
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background: #2145f7;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 16px;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 26px;
}

.btn-login:active {
  background: #1a37c9;
}

.btn-forget {
  display: block;
  width: 70%;
  margin: 0 auto;
  text-align: center;
  padding: 12px;
  border: 1.5px solid #2145f7;
  border-radius: 30px;
  color: #2145f7;
  font-size: 16px;
  text-decoration: none;
}

.version {
  text-align: right;
  padding: 12px 20px;
  color: #9a9a9a;
  font-size: 13px;
}

@media (max-width: 380px) {
  .logo-icon { font-size: 76px; }
  .logo-text { font-size: 26px; }
  .header { height: 380px; }
}
