/* Login Redesign - gated behind body.login-redesign class */

body.login-redesign {
  background-image: url(./images/bg_login.jpg) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
  font-family: "Geist", sans-serif !important;
}

body.login-redesign .ant-pro-form-login-top,
body.login-redesign .ant-pro-form-login-main {
  width: 300px !important;
  text-align: left !important;
}

body.login-redesign .intro h2 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

body.login-redesign .ant-pro-form-login-header {
  justify-content: flex-start !important;
}

body.login-redesign input:not([type="checkbox"]) {
  border-radius: 6px !important;
  height: 36px !important;
  padding: 8px !important;
  border: 1px solid #e4e4e7 !important;
  font-family: "Geist", sans-serif !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

body.login-redesign input:not([type="checkbox"]):focus {
  border-color: #7346ff !important;
  box-shadow: 0 0 0 2px rgba(115, 70, 255, 0.2) !important;
  outline: none !important;
}

body.login-redesign input:not([type="checkbox"]).field-validation-error {
  border-color: #ff4d4f !important;
}

body.login-redesign button {
  border-radius: 6px !important;
  height: 36px !important;
  font-size: 14px !important;
  font-family: "Geist", sans-serif !important;
}

body.login-redesign button:hover {
  background: #6d28d9 !important;
}

body.login-redesign .sso-button {
  border-radius: 6px !important;
  height: 36px !important;
  font-size: 14px !important;
  font-family: "Geist", sans-serif !important;
}

body.login-redesign .buttons #cancel {
  background: transparent !important;
  height: auto !important;
  border-radius: 0 !important;
}

body.login-redesign .buttons #cancel:hover {
  background: transparent !important;
}

@media (max-width: 576px) {
  body.login-redesign .ant-pro-form-login-top,
  body.login-redesign .ant-pro-form-login-main {
    width: 100% !important;
    padding: 0 16px !important;
  }
}

body.login-redesign .feature-boxes {
  display: none;
}

body.login-redesign .dashboard-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px;
}

body.login-redesign .dashboard-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

body.login-redesign .welcome-message {
  height: auto;
}

@media screen and (max-height: 950px) {
  body.login-redesign .dashboard-image-container {
    max-width: 400px;
    padding: 12px;
    margin-bottom: 1rem;
  }
}
