@import url('/fonts.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-weight: 400; }

body {
  font-family: 'e-Ukraine', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: #d8d9c4;
  min-height: calc(var(--vh, 1dvh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.login-logo span {
  font-size: 22px;
  font-weight: 400;
  color: #1c1c1e;
  letter-spacing: -0.5px;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.login-card h2 {
  font-size: 20px;
  font-weight: 400;
  color: #1c1c1e;
}

.login-hint {
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.4;
}

.login-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0e0d8;
  border-radius: 12px;
  font-size: 16px;
  font-family: monospace;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.15s;
  background: #f8f8f4;
}

.login-field input:focus {
  border-color: #868678;
  background: #ffffff;
}

.login-error {
  font-size: 13px;
  color: #c0392b;
  min-height: 18px;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: #52533e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: filter 0.15s;
}

.login-btn:hover {
  filter: brightness(1.15);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}
