html {
  height: 100%;
  overflow: hidden;
}

body {
  background: #d9d9d9;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-card {
  background: #0a102d;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.login-logo-static {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  display: none;
}

.login-logo-video {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.login-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 5px;
}

.login-subtitle {
  color: #cccccc;
  font-size: 0.9rem;
}

.form-floating > .form-control {
  border-radius: 10px;
  border: 2px solid #3355aa;
  background-color: #000000;
  color: #ffffff;
}

.form-floating > .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.3);
  background-color: #000066;
}

/* Chrome autofill styling */
.form-floating > .form-control:-webkit-autofill,
.form-floating > .form-control:-webkit-autofill:hover,
.form-floating > .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 30px #000000 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form-floating > label {
  color: #cccccc;
}

.btn-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a3a8e 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-login:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.error-message {
  background: #331111;
  border: 1px solid #cc3333;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: #ff6666;
  font-size: 0.9rem;
  display: none;
}

.success-message {
  background: #113311;
  border: 1px solid #33cc33;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: #66ff66;
  font-size: 0.9rem;
  display: none;
}
