* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
}

body {
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.45;
    color: #1b252c;
    background: #1d282e url('https://ibank.nbg.gr/identity/dist/images/login-retail.60c076550a40134a8c52.png') center center / cover no-repeat fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 24, 30, 0.42) 0%, rgba(16, 24, 30, 0.25) 45%, rgba(16, 24, 30, 0.48) 100%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font-family: inherit;
}

/* Cookie Bar */
.cookie-bar {
    position: relative;
    z-index: 10;
    background: rgba(155, 160, 165, 0.72);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 4px 16px;
    text-align: center;
    font-size: 11px;
    line-height: 1.35;
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar__text {
    max-width: 980px;
    margin: 0 auto 3px;
}

.cookie-bar__link {
    text-decoration: underline;
    font-weight: 500;
}

.cookie-bar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-bar__settings {
    text-decoration: underline;
    font-size: 11.5px;
    margin-right: 4px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

.cookie-btn {
    height: 22px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.cookie-btn--reject {
    background: #ffffff;
    color: #1b252c;
}

.cookie-btn--accept {
    background: #169fb1;
    color: #ffffff;
}

/* Top Header */
.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 26px 8px;
}

.nbg-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
    color: #ffffff;
    user-select: none;
}

.nbg-brand__img {
    height: 34px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #ffffff;
    font-size: 12.5px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
}

.header-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.header-link:hover {
    text-decoration: underline;
}

/* Main Center Column */
.main-wrap {
    position: relative;
    z-index: 4;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 28px;
    gap: 22px;
}

.auth-card {
    width: 100%;
    max-width: 364px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 30px 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.auth-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #20282e;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d7dce0;
    border-radius: 6px;
    font-size: 14px;
    color: #1b252c;
    background: #ffffff;
    outline: none;
}

.auth-input::placeholder {
    color: #8a949c;
}

.auth-input:hover,
.auth-input:focus {
    border-color: #d7dce0;
    box-shadow: none;
    outline: none;
}

.pw-user-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    margin: -4px 0 6px;
    padding: 4px 10px 4px 6px;
    border: 1px solid #e2e5e8;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13.5px;
    font-weight: 400;
    color: #1b252c;
}

.pw-back-btn {
    background: none;
    border: none;
    color: #007a87;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-left: 6px;
}

.pw-input-wrap {
    position: relative;
    width: 100%;
}

.pw-input-wrap .auth-input {
    padding-right: 40px;
}

.pw-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0e7f8e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

[hidden] {
    display: none !important;
}

.auth-submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #92c3ca;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.auth-submit.is-ready {
    background: #0e8595;
}

.auth-submit.is-ready:hover {
    background: #0b6f7d;
}

.forgot-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0e7f8e;
}

.card-divider {
    height: 1px;
    background: #eef1f3;
    margin: 16px -6px 14px;
}

.card-sub-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0e7f8e;
}

.card-sub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    line-height: 1.25;
    flex: 1;
}

.card-sub-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #334155;
    flex-shrink: 0;
}

/* Corporate + Demo */
.corp-line {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.corp-line a {
    font-weight: 700;
    text-decoration: underline;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Security / Lock Account Card */
.security-card {
    width: 100%;
    max-width: 364px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 26px 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    text-align: center;
    margin-top: 4px;
}

.security-card__head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1b252c;
    margin-bottom: 6px;
}

.security-card__sub {
    font-size: 13.5px;
    color: #1b252c;
    margin-bottom: 16px;
}

.lock-btn {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid #0e7f8e;
    background: #ffffff;
    color: #0e7f8e;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lock-btn:hover {
    background: #ffffff;
    border-color: #006f7d;
    color: #006f7d;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.security-card__note {
    font-size: 11px;
    line-height: 1.45;
    color: #374151;
}

.security-card__note a {
    font-weight: 700;
    color: #1b252c;
    text-decoration: none;
}

.security-card__note a:hover {
    text-decoration: underline;
}

/* Bottom Socials & Legal Links */
.bottom-bar {
    position: relative;
    z-index: 5;
    padding: 8px 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.social-row {
    display: inline-flex;
    align-items: center;
    gap: 32px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.legal-row a:hover {
    text-decoration: underline;
}

.legal-dot {
    font-size: 11px;
    opacity: 0.9;
}

.sofia-widget {
    position: fixed;
    right: 20px;
    bottom: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.sofia-bubble {
    background: #ffffff;
    color: #1b252c;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 11.5px;
    line-height: 1.35;
}

.sofia-bubble strong {
    display: block;
    font-size: 12px;
}

.sofia-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
    .cookie-bar {
        padding: 6px 12px 8px;
    }
    .cookie-bar__actions {
        gap: 8px;
    }
    .site-header {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 20px 16px 26px;
    }
    .header-right {
        gap: 22px;
    }
    .header-links {
        border-left: none;
        padding-left: 0;
        gap: 8px;
    }
    .main-wrap {
        padding: 12px 26px 28px;
        gap: 20px;
    }
    .auth-card,
    .security-card {
        max-width: 100%;
        padding: 26px 22px 20px;
    }
    .sofia-widget {
        right: 16px;
        bottom: 16px;
    }
    .sofia-avatar {
        width: 56px;
        height: 56px;
        border-width: 0;
    }
    .sofia-bubble {
        display: none;
    }
    .social-row {
        gap: 24px;
    }
    .legal-row {
        font-size: 12px;
        text-align: center;
    }
}
