html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  justify-items: center;
  align-items: center;
  background-color: #1a1a2e;
  background-image: radial-gradient(ellipse at top, #16213e 0%, #1a1a2e 70%);
}

#main-holder {
  width: 380px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #222;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#login-header {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

#main-holder::before {
  content: '';
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  background-image: url('logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#login-error-msg-holder {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#login-error-msg {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

#error-msg-second-line {
  display: block;
}

#login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-bottom: 50px;
}

.login-form-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.login-form-field:focus {
  border-color: #007BFF;
}

.login-form-field::placeholder {
  color: #777;
}

#login-form-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  background-color: #007BFF;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s;
  margin-top: 4px;
}

#login-form-submit:hover {
  background-color: #0069d9;
}

#create-user-btn {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 8px;
  color: #aaa;
  font-size: 13px;
  font-weight: 500;
  background-color: transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

#create-user-btn:hover {
  border-color: #666;
  color: #fff;
  background-color: #333;
}
