div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: auto;
    width: 130px;
}

.login-pf-page {
    margin-top: 0;
    background-color: white;
    background-image: none;
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* =================================================================
   Base Styles
   ================================================================= */

/* Variables used by the modal rules further down (--overlay, --navy, --text,
  --link, --radius were referenced via var() but never declared anywhere in
  this file — that's why the modal looked broken/transparent). Wired to the
  same Ansible style tokens used elsewhere so the theme stays consistent. */
:root {
    --overlay: oklab(0 0 0 / 0.8);
    --color-surface-brand-primary: #003A78;
    --color-surface-brand-hover: hsla(215, 98%, 15%, 1);
    --color-surface-brand-disabled: #a0c4ff;

    --color-btn-primary-surface: #003A78;
    --color-btn-primary-hover: hsla(215, 98%, 15%, 1);
    --color-btn-primary-disabled: #a0c4ff;

    --color-brand-primary: hsla(215, 98%, 20%, 1);

    --color-border-primary: #D6DCE6;

    --color-text-primary: #6F7786;
    --color-text-link: #2d5fb0;
    --color-text-title-primary: #35415a;
    --color-text-toggle-password: #52585e;

    --color-input-border: #e0e1eb;
    --color-input-focus: hsla(215, 98%, 20%, 1);

    --text-base--font-size: 16px;
    --text-base--line-height: 1.5;
    --text-modal--font-size: 14px;
    --text-modal--line-height: 20px;
    --text-title-line-height: 24px;

    --radius: 8px;
    --spacing: 4px;

    --font-default: 'Poppins', 'Inter', 'system-ui', sans-serif;
    --font-poppins: 'Poppins', 'system-ui', sans-serif;
    --font-inter: 'Inter', 'system-ui', sans-serif;
}


html {
    background-color: white;
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: var(--text-base--line-height);
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    font-size: 16px;
    line-height: var(--text-base--line-height);
}
p {
    margin: 0;
}
a,
a:hover {
    text-decoration: none;
    color: inherit;
}



/* =================================================================
   Body & Authentication Layout
   ================================================================= */

.body {
    font-family: var(--font-default);
    background-color: white;
}

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

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

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

.logo-client {
  background: none;
  border-radius: 4px;
  height: 3rem;
}


/* Clickable trigger text (e.g. "Mentions légales", "Politique de
  confidentialité"). Previously had no rule at all, so even though the
  click handler was attached in JS, it didn't look interactive. */
.clickable {
    cursor: pointer;
}

/*.clickable:hover,
.clickable:focus-visible {
    color: var(--color-brand-primary);
}

.clickable:focus-visible {
    outline: 2px solid var(--color-brand-primary);
    outline-offset: 2px;
}*/


.login-pf body {
    background: white;
}

/* =================================================================
   Left Section
   ================================================================= */

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

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


/* Logo */
.logo {
    height: 36px;
    border-radius: 4px;
    background-image: url(../img/keycloak-logo-text.png);
    width: 128px;
    object-fit: cover;
    background-position: center;
    background-size: contain;

}

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



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



/* Typography */
.main-title {
    font-family: var(--font-poppins);
    font-size: 3rem;
    font-weight: 700;
    line-height: 3rem;
    padding-bottom: 1rem;
    color: var(--color-text-title-primary);
    margin: 0;
    margin-bottom: 0.5rem;
}

.subtitle-auth {
    font-family: var(--font-poppins);
    font-size: 0.875rem;
    font-weight: normal;
    line-height: calc(var(--text-base--line-height) * 0.875);
    color: var(--color-text-title-primary);
    margin: 0;
}



/* =================================================================
   Forms
   ================================================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    justify-content: space-between;
    margin-bottom: 0;
    height: 100%;
    flex-grow: 1;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: start;
    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: var(--font-inter);
}

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


#custom-reset-password-form {
    padding: 0.75rem 1rem;
    flex-grow: 1;
    justify-content: space-between;
}

.inputs-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.actions-group {
    gap: 1rem;
    flex-direction: column;
    display: flex;
}

/* Input Styles */
input {
    font-family: var(--font-inter);
    display: flex;
    width: 100%;
    height: 3rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-input-border);
    border-radius: 4px;
    gap: 1rem;
    font-size: 1rem;
    background-color: white;
    transition: 0.3s;
}

input:focus {
    outline-color: var(--color-input-focus);
    outline: 2px solid var(--color-input-focus);
    outline-offset: 2px;
}

input::placeholder {
    font-family: var(--font-inter);
    opacity: 0.9;
}

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



/* Password Visibility Toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-toggle-password);
}

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



/* =================================================================
   Divider
   ================================================================= */

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


/* Input Info & Messages */
.input-info {
    color: #393e46;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: var(--font-inter);
}

.input-forgot-password {
    color: #667085;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: var(--font-inter);
    display: flex;
    justify-content: end;
    width: 100%;
}

.error-message {
    color: hsla(6, 82%, 47%, 1);
}

/* =================================================================
    Buttons
   ================================================================= */

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

.btn-custom {
    flex: 1;
    height: 3rem;
    padding: 0 1rem;
    font-family: var(--font-inter);
    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: #efefef;
    color: hsla(220, 10%, 25%, 1);
    border: 1px solid hsla(235, 23%, 88%, 1);
}

.btn-primary {
    transition-duration: .2s;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

    background-color: var(--color-btn-primary-surface);
    background-image: none !important;
    color: white;
}

.brand-surface {
    background-color: var(--color-surface-brand-primary);
}

.btn-primary:hover {
    background-color: var(--color-btn-primary-hover);
    border: none;
}

.btn-primary:disabled {
    background-color: var(--color-btn-primary-disabled);
    cursor: not-allowed;
}

/* Download Right section Button */
.download-btn {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
  transition-property: all;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  padding-block: calc(var(--spacing) * 2);
  padding-inline: calc(var(--spacing) * 2.5);
  margin-bottom: calc(var(--spacing) * 10);

  border: 1px solid #ddd;
  border-radius: 0.25rem;

  color: white;
  background-color: rgb(0, 58, 120);
  font-family: inherit;
  font-weight: 600;
  line-height: var(--text-base--line-height); /* override patternfly's line-height for Keycloak */
  cursor: pointer;

  width: fit-content;
  min-width: calc(var(--spacing) * 32);
  height: fit-content;
  white-space: nowrap;
}
.download-btn:hover {
  background-color: #656C7B;
}
.download-btn img {
  height: calc(var(--spacing) * 6);
  width: calc(var(--spacing) * 6);
}



.center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =================================================================
    Right Section
   ================================================================= */

.auth-right-section {
    display: none;
    padding: calc(var(--spacing) * 10);
}

.title-small {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
    padding-bottom: 1.5rem;
}

.title-with-img {
    display: flex;
    flex-direction: row;
    gap: calc(var(--spacing)*4);
    align-items: center;
}

.title-img {
    height: 2rem;
}

.right-title {
    font-family: var(--font-poppins);
    font-size: 2rem;
    font-weight: bold;
    padding-bottom: 1.5rem;
    margin: 0;
}

.regular-text {
    font-size: 0.875rem;
    line-height: calc(var(--spacing) * 8);
    margin-bottom: 0;
    font-family: var(--font-inter);
}

.paragraph {
    line-height: calc(var(--spacing) * 6);
}

.pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
}
.pb-6 {
    padding-bottom: calc(var(--spacing) * 6);
}
.pl-6 {
    padding-left: calc(var(--spacing) * 6);
}
.mt-8 {
    margin-top: calc(var(--spacing) * 8);
}

/* Inscription Box */
.inscription-box {
    color: var(--color-brand-primary);
    background-color: white;
    border-radius: 16384px;
    text-align: center;
    line-height: var(--text-base--line-height);
    display: inline-block;
    width: fit-content;
    padding-block: calc(var(--spacing) * 2.5);
    padding-inline: calc(var(--spacing) * 4);
    margin-bottom: calc(var(--spacing) * 10);
    margin-top: calc(var(--spacing) * 2);
}

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

.list-not-last {
    margin-bottom: calc(var(--spacing) * 2);
}

.text-color-brand {
    color: var(--color-brand-primary);
}
.text-color-regular {
    color: var(--color-text-primary);
}
.no-wrap {
    white-space: nowrap;
}


/* Client specific */
.right-title {
    font-family: 'Poppins', 'system-ui', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 2.25rem;
    padding-bottom: 1.5rem;
}

.right-list {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: 'Inter', sans-serif;
    list-style-type: disc;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

.inscription-box {
    color: hsla(215, 98%, 20%, 1);
    text-align: center;
    padding: 0.625rem 1rem;
    background-color: white;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 2.5rem;
}




/* =================================================================
    Footer
   ================================================================= */


.right-footer {
    display: flex;
    position: relative;
    justify-content: center;
    gap: 1rem;
    border-top: 1px solid white;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 14px;
    line-height: var(--text-base--line-height); /* override patternfly's line-height for Keycloak*/
}

.ianord-logo {
    position: absolute;
    left: 6px;
    scale: 1.2;
}

.text-6px {
    font-size: 6px;
}


/* Client specific */



/* =================================================================
    Media Queries - Desktop (1025px+)
   ================================================================= */

@media screen and (min-width: 1025px) {

    /* Right Section - Desktop */
    .auth-right-section {
        background:
            linear-gradient(
                270deg, 
                rgba(1, 43, 103, 0.85),
                rgba(3, 63, 148, 0.85)
            ),
            url('../img/keycloak-bg.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        justify-content: space-between;
        flex-direction: column;
        flex-basis: 50%;
        display: flex;
        color: white;
        padding: calc(var(--spacing) * 10);
        font-family: var(--font-inter);
        font-size: 14px;
        position: relative;
    }

    /* Layout Adjustments */
    .auth-wrapper {
        flex-direction: row;
    }

    .fixed {
        position: fixed;
    }
    .relative {
        position: relative;
    }

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

    /* Logo - Desktop */
    .logo-container {
        display: flex;
        background-color: transparent;
        padding: 0;
        border-bottom: none;
        align-items: start;
        margin-bottom: 5rem;
    }

    /* Auth Container - Desktop */
    .auth-container {
        padding: 0 0 1.5rem 0;
    }

    /* Forms - Desktop */
    .auth-form {
        min-width: 550px;
        max-height: 75dvh;
        margin-bottom: 4rem;
        padding: 0;
    }

    /* Typography - Desktop */
    .subtitle-auth {
        font-size: 1.5rem;
    }



    #custom-reset-password-form {
        padding: 0;
    }

    .actions-group {
        gap: 2rem;
    }
}

/* =================================================================
    Utility Classes
   ================================================================= */

.eyes[data-show="true"] {
    display: block;
}

.eyes[data-show="false"] {
    display: none;
}


/* =================================================================
    Overlay
   ================================================================= */

.footer-links-wrapper {
  text-align: center;
  gap: calc(var(--spacing) * 4);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  font-family: var(--font-inter);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
  line-height: var(--text-modal--line-height);
  font-size: var(--text-modal--font-size);
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.18s ease-out;
}

/* Modal box */
.modal-box {
  background: #fff;
  width: fit-content;
  min-width: 0;
  max-width: 80rem;
  max-height: 80vh;
  overflow-y: auto;
  padding: calc(var(--spacing) * 6);
  border-color: var(--color-border-primary);
  border-style: solid;
  border-width: 1px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.2s ease-out;
  z-index: 30;
  position: relative;
}

.modal-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(var(--spacing) * 6);
  text-align: start;
  line-height: var(--text-title-line-height);
}
.modal-header-custom p {
  font-size: 1.2rem;
  font-family: var(--font-poppins);
  font-weight: 700;
  color: var(--color-text-title-primary);
}

.modal-close {
  width: calc(var(--spacing) * 8);
  height: calc(var(--spacing) * 8);
  border-radius: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--color-border-primary);
  background: #fff;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: #f4f5f8; }

.modal-body {
  line-height: 1.6;
  text-align: start;
  font-size: 1rem;
  padding: 0; /* override Keycloak's patternfly.css */
  padding-bottom: calc(var(--spacing) * 4);
}
.modal-body h2 {
  font-family: var(--font-poppins);
  font-size: 1rem; /* override Keycloak's patternfly.css */
  margin: 0; /* override Keycloak's patternfly.css */
  font-weight: 600;
  color: var(--color-text-title-primary);
  padding-top: calc(var(--spacing) * 4);
  padding-bottom: calc(var(--spacing) * 3)
}
.modal-body h3 {
  font-family: var(--font-poppins);
  font-size: 1rem; /* override Keycloak's patternfly.css */
  margin: 0; /* override Keycloak's patternfly.css */
  font-weight: 600;
  color: var(--color-text-title-primary);
  padding-top: calc(var(--spacing) * 4);
  padding-bottom: calc(var(--spacing) * 3)
}
.modal-body p {
  font-family: var(--font-inter);
  font-weight: 400;
  color: var(--color-text-primary);
  padding-bottom: calc(var(--spacing) * 2);
}
.modal-body a { color: var(--color-text-link); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay.open, .modal-box { animation: none; }
}

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