@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Jost:wght@300;400;500&display=swap');

html, body {
  height: 100%;
  background-color: #1a1c1f !important;
  color: #c8c0b0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  min-height: calc(100vh - 200px);
}

.form-signin {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #3d4450;
  border-top: 2px solid #cc3333;
  border-radius: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.form-signin img {
  filter: invert(1) brightness(60%) sepia(1) hue-rotate(5deg) saturate(3);
  opacity: 0.7;
}

.form-signin h1 {
  font-family: 'Cormorant Garamond', serif;
  color: #cc3333;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.form-signin input.form-control {
  background-color: #1a1c1f !important;
  border: 1px solid #3d4450 !important;
  border-radius: 0 !important;
  color: #c8c0b0 !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
}

.form-signin .form-floating label {
  color: #cc3333;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.form-signin .form-floating:focus-within label {
  color:#cc3333;
}

.form-signin .form-floating input:not(:placeholder-shown) ~ label {
  color: #cc3333;
}

.form-control.is-invalid {
  border-color: #cc3333 !important;
  box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.25) !important;
  background-image: none !important;
}

.form-control.is-valid {
  border-color: #2d5a2d !important;
  box-shadow: 0 0 0 2px rgba(45, 90, 45, 0.25) !important;
  background-image: none !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.form-control.is-invalid {
  animation: shake 0.3s ease;
}

.form-signin input.form-control:focus {
  border-color: #cc3333 !important;
  box-shadow: none !important;
  background-color: #1a1c1f !important;
  color: #c8c0b0 !important;
}



.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 20px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #5a6270;
  background: none;
  border: none;
  padding: 0;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #cc3333;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.form-control.is-invalid {
  border-color: #8b3a28 !important;
  background-image: none !important;
}

.form-control.is-valid {
  border-color: #2d5a2d !important;
  background-image: none !important;
}

.form-signin .btn-primary {
  background-color: #cc3333;
  border: 1px solid #cc3333;
  color: #1a1c1f;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 12px;
  transition: all 0.3s ease;
}

.form-signin .btn-primary:hover {
  background-color: #e04444;
  border-color: #e04444;
  color: #1a1c1f;
  box-shadow: none;
}

.form-check-input {
  background-color: #1a1c1f;
  border-color: #3d4450;
  border-radius: 0;
}

.form-check-input:checked {
  background-color: #cc3333;
  border-color: #cc3333;
}

.form-check-label {
  color: #5a6270;
  font-size: 0.8rem;
}

.text-center.p-3 p {
  color: #5a6270;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.text-center.p-3 a {
  color: #cc3333;
}

.text-center.p-3 a:hover {
  color: #e04444;
}

.alert-danger {
  background: rgba(139, 58, 40, 0.2);
  border: 1px solid #8b3a28;
  border-left: 3px solid #8b3a28;
  color: #ffbbaa;
  border-radius: 0;
  font-size: 0.85rem;
}

.alert-success {
  background: rgba(45, 90, 45, 0.2);
  border: 1px solid #2d5a2d;
  border-left: 3px solid #2d5a2d;
  color: #aaffaa;
  border-radius: 0;
  font-size: 0.85rem;
}

.requirements {
  font-size: 0.75rem;
  color: #7a8290;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  font-family: 'Jost', sans-serif;
}

.requirements ul {
  margin: 0.25rem 0;
  padding-left: 1rem;
  list-style: none;
}

.requirements li::before { content: none; }
.requirement-met { color: #5a8a5a !important; }
.requirement-met::before { content: '✓ ' !important; color: #5a8a5a !important; }
.requirement-unmet { color: #3d4450; }