/* === RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === ПЕРЕМЕННЫЕ === */
:root {
  --blue1: #0a84ff;
  --blue2: #2f80ed;
  --text: #1f172a;
  --muted: #64748b;
}

/* === BODY === */
body {
  font-family: Arial, sans-serif;
  background: #f3f6fb;
  color: var(--text);
}

/* === APP === */
.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === ЭКРАНЫ === */
.screen {
  width: 100%;
  min-height: 100vh;
  display: none;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* === HEADER === */
.header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 18px;
  color: white;

  background: linear-gradient(90deg, var(--blue1), var(--blue2));
}

/* === КОНТЕНТ === */
.content {
  flex: 1;
  padding: 20px;
}

/* === ЦЕНТР === */
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 16px;
  text-align: center;
}

/* === INPUT === */
input {
  width: 100%;
  padding: 14px;
  margin-top: 12px;

  border-radius: 12px;
  border: 1px solid #ddd;

  font-size: 16px; /* важно для iPhone */
  outline: none;
}

input:focus {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px rgba(47,128,237,0.2);
}

/* === КНОПКИ === */
button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--blue1), var(--blue2));
}

/* === ССЫЛКА === */
.link {
  margin-top: 10px;
  text-align: center;
  color: var(--blue2);
  cursor: pointer;
  font-size: 14px;
}

/* === СКРЫТО === */
.hidden {
  display: none;
}