*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-login: #242424;
  --card-bg: #ffffff;
  --accent-brand: #ff4500;
  --accent-brand-hover: #e63e00;
  --text-main: #333333;
  --text-secondary: #888888;
  --input-border: #dddddd;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-login);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-page {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.brand-logo {
  width: auto;
  height: auto;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
}

.brand-logo-img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand h1 {
  color: var(--accent-brand);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  font-weight: 600;
}

.auth-card h2 {
  display: none;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: none;
}

.field input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #999999;
}

.field input:focus {
  border-color: var(--accent-brand);
  box-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 6px;
  background: var(--accent-brand);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 5px;
}

.btn-primary:hover {
  background: var(--accent-brand-hover);
}

.alert {
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-align: left;
}

.alert-error {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  color: #dc3545;
}

.auth-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 0 15px;
  line-height: 1.6;
}

.auth-footer a {
  color: var(--accent-brand);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 480px) {
  .auth-page {
    padding: 32px 22px;
  }

  .brand h1 {
    font-size: 1.3rem;
  }
}
