:root {
  --primary-color: #266dd3;
  --primary-hover: #1e5bb8;
  --bg-color: #f5f7f9;
  --card-bg: #ffffff;
  --text-primary: #1a1b1e;
  --text-secondary: #585c62;
  --border-color: #8c8f94;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  padding-top: 40px;
}

.global-header {
  margin-bottom: 30px;
}

.global-header img {
  height: 28px;
}

.container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2c333f;
}

.user-info {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.user-info span {
  font-weight: 700;
  color: #1a1b1e;
}

.user-info a {
  color: var(--primary-color);
  text-decoration: underline;
  display: block;
  margin-top: 2px;
}

.field-group {
  text-align: left;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2c333f;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid #d1d4d9;
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

input:hover {
  border-color: #b0b4b9;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(38, 109, 211, 0.1);
}

.toggle-password {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: #1a1b1e;
  display: flex;
  align-items: center;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  cursor: pointer;
  text-align: left;
}

.checkbox-group input {
  margin-right: 10px;
  width: 16px;
  height: 16px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: 14px;
  color: #2c333f;
}

.forgot-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: underline;
  text-align: left;
  margin-bottom: 30px;
  margin-top: -10px;
}

.btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.info-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.otp-field {
  width: 45px;
  height: 56px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: white;
  color: var(--text-primary);
  transition: border-color 0.2s, outline 0.2s;
}

.otp-field:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -1px;
}

.code-field-group {
  margin-bottom: 30px;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 24px 0;
  text-align: left;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1b1e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
  opacity: 0.3;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.wide {
  grid-column: span 2;
}

.input-icon-wrapper {
  position: relative;
  transition: all 0.2s ease;
}

.input-icon-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8f94;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.input-icon-wrapper input {
  padding: 14px 14px 14px 44px !important;
  border: 1px solid #d1d4d9;
  border-radius: 6px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-icon-wrapper input:hover {
  border-color: #b0b4b9;
}

.input-icon-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(38, 109, 211, 0.1);
  background-color: #fff;
  outline: none;
}

.input-icon-wrapper input:focus + svg,
.input-icon-wrapper:focus-within svg {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  margin-bottom: 20px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.secondary-links {
  font-size: 14px;
  color: var(--text-secondary);
}

.secondary-links a {
  color: var(--primary-color);
  text-decoration: underline;
}

.notice-box {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px;
  margin-top: 30px;
  font-size: 13px;
  color: #585c62;
  line-height: 1.5;
}

footer {
  width: 100%;
  max-width: 600px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 40px;
}

.language-selector {
  margin-bottom: 20px;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--primary-color);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
