:root {
  --accent: #7F90E9;
  --accent-dark: #5f6fd6;
  --text: #1f1f1f;
  --muted: #5f6368;
  --border: #dadce0;
  --bg: #f4f6fb;
  --card: #ffffff;
  --error: #c5221f;
  --error-bg: #fce8e6;
  --ok: #188038;
  --ok-bg: #e6f4ea;
}

* {
  box-sizing: border-box;
}

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

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 40px 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.logo {
  display: block;
  height: 40px;
  margin: 0 auto 24px;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 4px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

.tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
}

.tab.active {
  background: var(--accent);
  color: white;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

button.primary {
  margin-top: 8px;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

button.primary:hover {
  background: var(--accent-dark);
}

button.primary:disabled {
  opacity: 0.6;
  cursor: default;
}

button.link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
}

.message {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.message.error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
}

.message.ok {
  display: block;
  background: var(--ok-bg);
  color: var(--ok);
}

.hidden {
  display: none !important;
}

.account {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

.account .username {
  font-size: 18px;
  font-weight: 500;
}

.account .email {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.badge.verified {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge.unverified {
  background: var(--error-bg);
  color: var(--error);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

button.secondary {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

button.secondary:hover {
  background: #f1f3f4;
}

.verify-form {
  width: 100%;
  margin-bottom: 16px;
}

.verify-form input {
  text-align: center;
  letter-spacing: 6px;
  font-size: 18px;
  font-weight: 500;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(0);
  background: #202124;
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}
