* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px;
}

.app {
  width: 100%;
  max-width: 420px;
}

.screen.hidden {
  display: none;
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: pop 0.35s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
  font-size: 48px;
  margin-bottom: 8px;
}

h1 {
  font-size: 26px;
  color: #1e1b3a;
  margin-bottom: 6px;
}

.muted {
  color: #7a7899;
  font-size: 14px;
  margin-bottom: 24px;
}

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

label {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label span {
  font-size: 13px;
  font-weight: 600;
  color: #4a4770;
}

input {
  padding: 13px 16px;
  border: 2px solid #e4e2f2;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
  margin-top: 8px;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}

.btn-ghost {
  background: #f1f0fa;
  color: #4a4770;
}

.error {
  color: #e5484d;
  font-size: 13px;
  min-height: 18px;
  font-weight: 600;
}

/* Профиль */
.profile .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stats {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.stat {
  flex: 1;
  background: #f1f0fa;
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat span {
  font-size: 18px;
  font-weight: 800;
  color: #4a4770;
}

.stat small {
  font-size: 11px;
  color: #7a7899;
}

a.btn {
  text-decoration: none;
  text-align: center;
  display: block;
}

.btn-finance {
  background: linear-gradient(135deg, #0a7a3d, #3ddc84);
  color: #fff;
  margin-top: 10px;
}
