* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#errorcontent {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

a {
  text-decoration: none;
}

.body {
  font-family: 'Inter', 'system-ui', sans-serif;
}

.page {
  display: flex;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background-color: white;
  flex-direction: column;
}

.white-background {
  background-color: white;
}

.main {
  background-color: white;
  flex-grow: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 16px;
  background-color: #f8f9fb;
  border-bottom: 1px solid #dfe0eb;
}

.container-logo {
  display: flex;
  padding: 16px;
  flex-direction: column;
  border-bottom: 1px solid var(--Border-primary, #dfe0eb);
}

.logo-93 {
  background-color: #012b67;
  border-radius: 4px;
  width: 118px;
  height: 36px;
}

.title {
  color: var(--text-text-title, #31313f);
  font-family: Poppins, 'system-ui', sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.subtitle {
  color: var(--text-text-title, #31313f);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.container-presentation {
  padding: 32px 16px 24px 16px;
}

#logout-text {
  display: none;
}

.container-lists {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
}

.container-category {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-name {
  font-size: 20px;
  color: var(--surface-brand, #012b67);
  font-weight: 700;
}

.container-application {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0 80px 0;
}

.application {
  background-color: #ffffff;
  border-radius: 8px;
  width: 360px;
  height: 128px;
  border: 1px solid var(--Border-primary, #dfe0eb);
  background: var(--Surface-secondary, #fff);
  box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 4px;
  flex-grow: 0;
}

.application:hover {
  transition: all 0.15s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  scale: 1.01;
}

.application>a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px;
  text-decoration: none;
}

.application-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.application-image {
  width: 48px;
  height: 48px;
}

.application-title {
  color: var(--Text-title, #31313f);
  font-family: Poppins, 'system-ui', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.application-title::first-letter {
  text-transform: uppercase;
}

.application-description {
  color: var(--Text-title, #31313f);
  font-family: 'Inter', 'system-ui', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  /* text-transform: uppercase; */
  font-variant: small-caps;
}

.application-description::first-letter {
  text-transform: uppercase;
}

.footer {
  width: 100%;
  color: var(--Text-title, #31313f);
  background-color: transparent;
  padding: 24px 8px;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  align-items: center;
}

.footer-credits {
  text-align: center;
}

.accent-link {
  color: var(--surface-brand, #012b67);
  font-weight: 700;
}

.alert-message {
  font-size: 18px;
  color: rgb(202, 22, 22);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid green;
  width: 100%;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 10px;
  border-radius: 4px;
  background-color: #f4f4f4;
  color: hsla(221, 13%, 46%, 1);
  font-size: 14px;
  border: 1px solid #dfe0eb;
  text-decoration: none;
}

@media screen and (min-width: 480px) and (max-width: 1024px) {
  .application {
    height: 130px;
  }
}

/* Desktop: 1025px and above */
@media screen and (min-width: 1025px) {
  .page {
    padding: 45px 112px;
    background-color: #f8f9fb;
  }

  .header {
    border-bottom: none;
  }

  .main {
    background-color: transparent;
    flex-grow: 1;
    padding: 0;
  }

  .container-presentation {
    padding: 32px 0px 64px 0px;
  }

  #logout-text {
    display: inline-block;
  }

  .title {
    font-size: 48px;
    text-align: center;
  }

  .subtitle {
    font-size: 18px;
    text-align: center;
  }

  .application {
    height: 192px;
  }

  .application>a {
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }

  .application-content {
    flex-direction: column;
    align-items: center;
  }

  .application-title {
    font-size: 18px;
  }

  .application-description {
    font-size: 14px;
    text-align: center;
  }

  .container-logo {
    display: flex;
    padding: 0;
    flex-direction: column;
    border-bottom: none;
    margin-bottom: 80px;
  }

  .footer {
    background-color: transparent;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

/* Auth Page */

p {
  margin-bottom: 0;
}

.auth {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

.auth>p {
  margin-bottom: 0;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.auth-left-section {
  flex-basis: 50%;
  background-color: white;
  flex-grow: 1;
}

.auth-left-section-container {
  display: flex;
  flex-direction: column;
  padding: 0
}

.logo-container {
  display: flex;
  background-color: #f8f9fb;
  padding: 16px;
  border-bottom: 1px solid #dfe0eb;
  border-radius: 0px;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Authentication Container */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1rem 1.5rem 1rem;
}

.main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: hsla(240, 12%, 22%, 1);
  margin: 0;
  margin-bottom: 0.5rem;
  line-height: 2rem;
}

.subtitle-auth {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: normal;
  color: hsla(240, 12%, 22%, 1);
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
}

/* Input Fields */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.input-group label {
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: 500;
  color: #667085;
  line-height: 1.5rem;
  font-family: 'Inter', sans-serif;
}

.alert-input {
  font-size: 14px;
  padding: 8px 0 8px 4px;
  color: #ab2424;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: fit-content;
}

input {
  display: flex;
  width: 100%;
  height: 3rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  gap: 1rem;
  font-size: 1rem;
  background-color: white;
  transition: 0.3s;
  width: 100%;
}

input:focus {
  outline-color: hsla(215, 98%, 20%, 1);
  outline: 2px solid hsla(215, 98%, 20%, 1);
  outline-offset: 2px;
}

/* Password Visibility Toggle */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: hsla(215, 98%, 20%, 1);
}

.toggle-password svg {
  width: 16px;
  height: 16px;
}

.hidden {
  display: none;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  width: 100%;
  background-color: #ccc;
  margin: 80px 0 0 0;
}

.button-group {
  display: flex;
  gap: 1rem;
}

.btn-custom {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.5rem;
  transition-duration: 300ms;
  width: 100%;
  border: none;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
  background-color: hsla(0, 0%, 96%, 1);
  border: 1px solid hsla(235, 23%, 90%, 1);
  color: hsla(220, 10%, 25%, 1);
}

.btn-secondary:hover {
  background-color: rgb(235 235 235);
  color: hsla(220, 10%, 25%, 1);
  border: 1px solid hsla(235, 23%, 90%, 1);
}

.btn-primary {
  background-color: hsla(215, 98%, 20%, 1);
  /* border: 1px solid hsla(235, 23%, 90%, 1); */
  color: white;
}

.btn-primary:hover {
  background-color: hsla(215, 98%, 15%, 1);
}

input:disabled {
  background-color: #eaeaea;
  color: #888;
}

.btn-primary:disabled {
  background-color: #a0c4ff;
  cursor: not-allowed;
}

.auth-right-section {
  display: none;
}

.right-title {
  font-family: 'Poppins', 'system-ui', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  padding-bottom: 1.5rem;
}

.right-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: bold;
  padding-bottom: 1.5rem;
}

.title-small {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  padding-bottom: 1.5rem;
}

.regular-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 24px;
  margin-bottom: 0;
  font-family: 'Inter', 'system-ui', sans-serif;
}

/* Subtitle & Section Titles */
.right-subtitle,
.section-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

/* Lists */
.right-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Inscription Box */
.inscription-box {
  color: hsla(215, 98%, 20%, 1);
  background-color: white;
  border-radius: 9999px;
  display: inline-block;
  padding: 0.625rem 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  width: fit-content;
  font-weight: 500;
}

.inscription-box>p {
  margin-bottom: 0;
}

/* Button */
.download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #ddd;
  background-color: hsla(215, 98%, 20%, 1);
  color: white;
  font-weight: 600;
  border-radius: 0.25rem;
  cursor: pointer;
  margin-bottom: 2.5rem;
  font-size: 14px;
}

.download-btn img {
  width: 16px;
  height: 16px;
}

/* Footer */
.right-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid white;
  padding-top: 1rem;
  font-size: 14px;
}

@media screen and (min-width: 1025px) {
  .auth-wrapper {
    flex-direction: row;
  }

  .auth-right-section {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: linear-gradient(270deg,
        rgba(1, 43, 103, 0.95),
        rgba(3, 63, 148, 0.95)),
      url('./common/backgrounds/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 2.5rem;
    color: white;
    font-size: 14px;
  }

  .auth-left-section-container {
    display: flex;
    flex-direction: column;
    min-width: 36rem;
    flex-basis: 33%;
    padding: 2.75rem 7rem 0 7rem;
  }

  .logo-container {
    display: flex;
    background-color: transparent;
    padding: 0;
    border-bottom: none;
    align-items: center;
    margin-bottom: 5rem;
  }

  .auth-container {
    padding: 0 0 1.5rem 0;
  }

  .subtitle-auth {
    font-size: 1.5rem;
  }

  .auth-form {
    min-width: 550px;
    max-height: 75vh;
    padding: 0;
  }

  .divider {
    margin: 1.5rem 0;
  }
}
