/* ---------------------------------------------------------------- */
/* Style spécifique à la société                                     */
/* À terme il faudra configuré dans l'outil de gestion un fichier css */
/* Ainsi qu'un logo et un titre.                                    */
/* Car là il s'agit des couleurs du CSE UTAC.                       */
/* ---------------------------------------------------------------- */

:root {
  --cse-background-image: url("/images/public/happy-cse.png");
  --cse-font-family: Poppins, sans-serif;
  --cse-light-color: #fff;
  --cse-primary-color: #3f58a4;
  --cse-primary-color-rgb: 63, 88, 164;
  --cse-primary-hover-color: #758dd3;
  --cse-primary-hover-color-rgb: 117, 141, 211;
  --cse-secondary-color: #f7943f;
  --cse-secondary-hover-color: #f8a965;
  --cse-shadow-color: rgba(var(--cse-primary-color-rgb), 0.25);
}

/* ---------------------------------------------------------------- */
/* Surchage du style pour les formulaires du site public            */
/* ---------------------------------------------------------------- */

:root {
  --bs-link-color-rgb: var(--cse-primary-color-rgb);
  --bs-link-hover-color-rgb: var(--cse-primary-hover-color-rgb);
  --dxds-color-surface-info-default-rest: var(--cse-primary-hover-color);
}

.dxbl-btn.dxbl-btn-primary {
  --dxbl-btn-color: var(--cse-light-color);
  --dxbl-btn-bg: var(--cse-primary-color);
  --dxbl-btn-border-color: var(--cse-primary-color);
  --dxbl-btn-hover-bg: var(--cse-primary-hover-color);
  --dxbl-btn-hover-border-color: var(--cse-primary-hover-color);
  --dxbl-btn-active-bg: var(--cse-primary-hover-color);
  --dxbl-btn-active-border-color: var(--cse-primary-hover-color);
}

/* ---------------------------------------------------------------- */
/* Styles spécifiques aux pages publiques                            */
/* ---------------------------------------------------------------- */

/* By David */

body.public-shell,
body.auth-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: auto;
  background-color: var(--cse-light-color);
  -webkit-font-smoothing: antialiased;
}

body.public-shell *,
body.public-shell *::before,
body.public-shell *::after,
body.auth-shell *,
body.auth-shell *::before,
body.auth-shell *::after {
  box-sizing: border-box;
}

body.auth-shell {
  isolation: isolate;
  position: relative;
}

body.auth-shell::before {
  background-image: var(
    --cse-background-image,
    url("/images/public/happy-cse.png")
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

/* By Gaëtan */

.button-link {
  text-decoration: underline;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.title.title-secondary {
  padding: 0.313rem 0 0;
  color: var(--dxds-color-content-secondary-default-rest);
}

.title-header-text {
  font-size: var(--dxds-font-size-headline-lg);
  font-weight: var(--dxds-font-weight-headline-default);
  letter-spacing: var(--dxds-letter-spacing-headline-lg);
  line-height: var(--dxds-line-height-headline-lg);
}

.title-content-text {
  font-size: var(--dxds-font-size-base-lg);
  font-weight: var(--dxds-font-weight-base-default);
  letter-spacing: var(--dxds-letter-spacing-base-lg);
  line-height: var(--dxds-line-height-base-lg);
}

.title-content-text-secondary {
  font-size: var(--dxds-font-size-title-md);
  line-height: var(--dxds-line-height-title-md);
}

.main-content {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.block-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: auto;
  max-width: 100%;
  width: 31.25rem;
}

.or {
  align-items: center;
  display: flex;
  flex-direction: row;
  padding: 0.3125rem 0;
}

.or .or-line {
  opacity: 0.2;
  width: 100%;
  border-bottom: 1px solid var(--dxds-color-content-neutral-default-rest);
}

.or .or-text {
  padding: 0 0.625rem;
  font-size: var(--dxds-font-size-caption-md);
  line-height: var(--dxds-line-height-caption-md);
  color: var(--dxds-color-content-neutral-subdued-rest);
}

.links-container {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.links-container .dot {
  border-radius: 50%;
  height: 0.3125rem;
  margin: 0 0.1875rem;
  opacity: 0.7;
  width: 0.3125rem;
  background-color: var(--dxds-color-surface-neutral-default-rest);
}

.manage-layout {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.manage-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.info-message {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 0.625rem 1rem;
  position: relative;
  background: var(--dxds-color-surface-info-subdued-rest);
}

.info-message.info-panel {
  margin-bottom: 0.625rem;
}

.large-input {
  font-size: 1.875rem;
  height: 4.3125rem;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
}

.confirm-button {
  margin-top: 0.3125rem;
}

.display-desktop {
  display: block;
}

.display-mobile {
  display: none;
}

@media (max-width: 768px) {
  .display-desktop {
    display: none;
  }

  .display-mobile {
    display: block;
  }
}

.logo-container {
  text-align: center;
  padding: 1rem 0;
}

.login-logo {
  max-width: 150px;
  height: auto;
}

.verification-code-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.verification-code-label {
  font-size: var(--dxds-font-size-base-md);
  font-weight: var(--dxds-font-weight-base-default);
  color: var(--dxds-color-content-neutral-default-rest);
}

.digit-inputs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.digit-input-field {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 1px solid var(--dxds-color-border-neutral-default-rest);
  border-radius: 0.5rem;
  background-color: var(--dxds-color-surface-neutral-default-rest);
  color: var(--dxds-color-content-neutral-default-rest);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.digit-input-field:focus {
  outline: none;
  border-color: var(--dxds-color-border-primary-default-rest);
  box-shadow: 0 0 0 2px var(--dxds-color-surface-primary-subdued-rest);
}

.digit-input-field:hover:not(:focus) {
  border-color: var(--dxds-color-border-neutral-default-hover);
}

.digit-separator {
  font-size: 1.5rem;
  color: var(--dxds-color-content-neutral-subdued-rest);
  margin: 0 0.25rem;
}

.remember-machine-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.remember-machine-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.remember-machine-container label {
  font-size: var(--dxds-font-size-base-md);
  color: var(--dxds-color-content-neutral-default-rest);
  cursor: pointer;
}

.link-primary {
  color: var(--dxds-color-content-primary-default-rest);
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.link-primary:hover {
  text-decoration: underline;
}

.denied-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  width: min(42rem, 100%);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--dxds-color-border-transparent-rest);
  background-color: var(--dxds-color-surface-neutral-default-rest);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  position: relative;
}

.denied-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  background: var(--dxds-color-content-danger-default-rest);
}

.denied-card-icon {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dxds-color-content-danger-default-rest);

}

.denied-card-icon i {
  font-size: 3rem;
}

.denied-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.denied-card-body .title-header-text {
  font-size: var(--dxds-font-size-headline-md);
  line-height: var(--dxds-line-height-headline-md);
}

.denied-card-body .title-content-text {
  color: var(--dxds-color-content-secondary-default-rest);
}

.info-checkbox {
  padding: 0 0.5rem 0.5rem;
  margin-top: -0.3rem;
  font-size: 0.825rem;
  color: var(--dxds-color-surface-info-default-rest);
}

.info-field {
  margin-top: -0.3rem;
  font-size: 0.825rem;
  color: var(--dxds-color-surface-info-default-rest);
}
