:root {
  --bg: #ffffff;
  --card-bg: #f8fafc;
  --card-border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #6366f1;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.05);
  --success: #10b981;
  --input-bg: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

.mobile-container {
  width: 100%;
  max-width: 414px;
  min-height: 100vh;
  background-color: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--card-bg);
  border-color: var(--text-muted);
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.form-content {
  padding: 0 20px 40px;
  flex-grow: 1;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.error-label {
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-input.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.form-input.error:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--error);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--error);
  font-size: 13px;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: white;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.4);
  margin-top: 32px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
  transform: scale(0.98);
}

.card-error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
}

.card-error-icon {
  color: var(--error);
  flex-shrink: 0;
}

.card-error-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.strength-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  flex: 1;
  background: var(--card-border);
  border-radius: 2px;
}

.strength-bar.active.weak { background: var(--error); }

.placeholder-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.help-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 32px;
}

.footer-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.sub-headline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 32px;
}
