.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-container {
  width: 100%;
  max-width: 480px;
  padding: 48px 40px;
  border-radius: 0;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 25px 60px rgba(0,0,0,0.75);
  position: relative;
  animation: cardIn 0.5s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo-wrap {
  position: relative;
  z-index: 1;
  margin: -48px -70px 0;
  padding: 10px 0 0;
  text-align: center;
}

.logo {
  display: block;
  width: 100%;
  filter: invert(1) hue-rotate(175deg) saturate(3) brightness(1.08) contrast(1.12);
}

.divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
}

.divider-line { flex: 1; height: 1px; }
.divider-line:first-child { background: linear-gradient(to right, transparent, rgba(201,163,92,0.4)); }
.divider-line:last-child  { background: linear-gradient(to left,  transparent, rgba(201,163,92,0.4)); }

.divider-label {
  font-family: 'Rye', serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #c9a35c;
  white-space: nowrap;
}

.field { position: relative; z-index: 1; margin-bottom: 18px; }

.field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(201,163,92,0.45);
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 16px 18px 16px 46px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(201,163,92,0.18);
  color: #f3e7d0;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.login-input::placeholder { color: rgba(201,163,92,0.4); }
.login-input:focus {
  border-color: rgba(201,163,92,0.45);
  box-shadow: 0 0 12px rgba(201,163,92,0.15);
}
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px rgba(10,8,4,0.95) inset;
  -webkit-text-fill-color: #f3e7d0;
  caret-color: #f3e7d0;
}

.login-error {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  color: #e57373;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  min-height: 18px;
}

.login-button {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px;
  border: none;
  background-size: 115% auto;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.login-button span {
  font-family: 'Rye', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f3e7d0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.6);
}

.login-button:hover { transform: translateY(-2px); filter: brightness(1.12) drop-shadow(0 8px 20px rgba(122,30,18,0.5)); }
.login-button:active { transform: translateY(0); filter: brightness(0.92); }
.login-button:disabled { opacity: 0.7; }

@media (max-width: 600px) {
  .login-container { max-width: 92%; padding: 36px 24px; }
}
