@import url("ing-design-tokens.css");
@import url("ing-lion-background.css");

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Premier bloc - Header (barre type préchargement ING) */
.header-block {
    width: 100%;
    height: var(--ing-header-height);
    background: var(--ing-card-bg);
    box-shadow: var(--ing-header-shadow);
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ing-logo {
    display: flex;
    align-items: center;
}

.ing-logo img {
    height: var(--ing-logo-height);
    max-width: var(--ing-logo-max-width);
    width: auto;
}

.lang-selector {
    display: flex;
    gap: 20px;
}

.lang-selector a {
    color: var(--ing-text-muted);
    text-decoration: none;
    font-size: var(--ing-fs-small);
    padding: 5px;
}

.lang-selector a:hover {
    color: var(--ing-orange);
}

/* Bloc formulaire (~448px) */
.login-block {
    width: 100%;
    max-width: var(--ing-card-max-width);
    margin: 50px auto;
    box-sizing: border-box;
    background: var(--ing-card-bg);
    padding: var(--ing-card-padding);
    border-radius: var(--ing-card-radius);
    box-shadow: var(--ing-card-shadow);
    position: relative;
    z-index: 1;
}

/* Titre carte login : une seule ligne comme sur le flux ING (~448px de carte) */
.login-block > h1 {
    color: var(--ing-orange);
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 24px 0;
    letter-spacing: -0.03em;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 500px) {
    .login-block > h1 {
        white-space: normal;
        font-size: clamp(17px, 4.5vw, 19px);
    }
}

.svg-container {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.svg-container .ucr-logo {
    width: 120px;
    height: 120px;
    display: block;
}

.form-group {
    margin-bottom: 22px;
}

.form-group > label:first-of-type,
.form-group label.field-label-primary {
    display: block;
    color: var(--ing-text-primary);
    margin-bottom: 8px;
    font-size: var(--ing-fs-base);
    font-weight: 400;
    line-height: 1.25;
}

.field-hint {
    margin: -4px 0 10px;
    font-size: var(--ing-fs-small);
    font-weight: 400;
    line-height: 1.35;
    color: var(--ing-text-muted);
}

label {
    display: block;
    color: var(--ing-text-primary);
    margin-bottom: 10px;
    font-size: var(--ing-fs-base);
    font-weight: 400;
}

input[type="text"] {
    width: 100%;
    height: var(--ing-input-height);
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--ing-input-radius);
    box-sizing: border-box;
    font-size: var(--ing-fs-base);
    font-family: inherit;
    color: var(--ing-text-primary);
    background: var(--ing-card-bg);
}

.ing-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 0;
}

.ing-info-icon {
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ing-info-icon svg {
    display: block;
}

.ing-info-body {
    flex: 1;
    min-width: 0;
}

.ing-info-paragraph {
    margin: 0;
    font-size: var(--ing-fs-small);
    line-height: 1.45;
    color: var(--ing-text-primary);
}

.ing-info-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #559bd1;
    text-decoration: underline;
    font-weight: 400;
    vertical-align: baseline;
}

.ing-info-more:hover {
    color: #3d8bc4;
}

.icon-external {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.95;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.help-link {
    font-size: var(--ing-fs-base);
    font-weight: 700;
    color: #013576;
    text-decoration: none;
    line-height: 1.3;
}

.help-link:hover {
    text-decoration: underline;
    color: #011071;
}

.next-button {
    padding: 12px 28px;
    min-height: 44px;
    background-color: var(--ing-orange);
    color: #fff;
    border: none;
    border-radius: var(--ing-input-radius);
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.next-button:hover {
    background-color: var(--ing-orange-hover);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: var(--ing-fs-base);
    color: var(--ing-text-primary);
    cursor: pointer;
    line-height: 1.35;
    font-weight: 400;
}

/* Section des méthodes alternatives (carte ING : titre à gauche, lignes séparées) */
.alternative-section {
    width: 100%;
    max-width: var(--ing-card-max-width);
    margin: 50px auto;
    box-sizing: border-box;
    background: var(--ing-card-bg);
    padding: var(--ing-card-padding);
    border-radius: var(--ing-card-radius);
    border: 1px solid #e0e0e0;
    box-shadow: var(--ing-card-shadow);
    position: relative;
    z-index: 1;
    clear: both;
}

.other-methods-title {
    color: var(--ing-orange);
    text-align: left;
    font-family: var(--ing-font-family);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px 0;
    max-width: 22em;
    -webkit-font-smoothing: antialiased;
}

.list--method-picker {
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list--method-picker .list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    margin: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: var(--ing-font-family);
    font-size: var(--ing-fs-base);
    font-weight: 400;
    color: var(--ing-text-primary);
    text-align: left;
    transition: background-color 0.15s ease;
}

.list--method-picker .list__item:last-child {
    border-bottom: none;
}

.list--method-picker .list__item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.list--method-picker .list__item:focus-visible {
    outline: 2px solid var(--ing-orange);
    outline-offset: 2px;
}

.list--method-picker .list__item.list__item--disabled {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
}

.list--method-picker .list__item.list__item--disabled:hover {
    background-color: transparent;
}

.selector-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector-icon--itsme .icon-itsme {
    width: 40px;
    height: 40px;
    display: block;
}

.selector-icon--qr .icon-ing-qr {
    width: 32px;
    height: 32px;
    display: block;
}

.selector-name {
    flex: 1;
    margin: 0;
    min-width: 0;
}

.chevron {
    flex-shrink: 0;
    color: #333;
    opacity: 0.85;
}

.chevron svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* footer */
.footer-block {
    width: 100%;
    margin-top: 50px;
    padding: 20px;
    background: var(--ing-card-bg);
    border-top: 1px solid var(--ing-border-subtle);
    position: relative;
    z-index: 1;
    clear: both;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--ing-text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ing-orange);
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .next-button {
        width: 100%;
        box-sizing: border-box;
    }
}
