* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0F0F0F;
  color: #F5F5F5;
  -webkit-font-smoothing: antialiased;
}

.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.brand {
  color: #D1BA79;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: #1A1A1A;
  border-radius: 18px;
  padding: 4px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #888;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
}

.lang-btn.active {
  background: #D1BA79;
  color: #090909;
}

.card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 28px 22px;
  flex: 1;
}

.screen.hidden { display: none; }

.title {
  color: #D1BA79;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.muted {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  color: #D1BA79;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}

input[type="password"] {
  width: 100%;
  background: #121212;
  border: 1px solid rgba(245,245,245,0.4);
  border-radius: 28px;
  padding: 12px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color 180ms;
}

input[type="password"]:focus {
  border-color: #D0B576;
}

input[type="password"].invalid {
  border-color: #FF8B8B;
}

.error {
  color: #FF8B8B;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 0;
  text-align: center;
}

.error.hidden { display: none; }

.primary-btn {
  width: 100%;
  background: #D1BA79;
  color: #090909;
  border: 0;
  border-radius: 22px;
  padding: 13px 0;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 22px;
  transition: opacity 180ms;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-icon, .error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}

.success-icon {
  background: #D1BA79;
  color: #090909;
}

.error-icon {
  background: #FF8B8B;
  color: #090909;
}

.footer {
  margin-top: 32px;
  color: #555;
  font-size: 12px;
  text-align: center;
}
