/* ADCB Personal Internet Banking Styles */

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

body {
    font-family: Arial, Helvetica, 'Open Sans', sans-serif;
    background-color: #dbe4ee;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Main Outer Container */
.main-wrapper {
    width: 100%;
    max-width: 980px;
    background-color: #ffffff;
    border: 1px solid #b8c2cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 25px 25px 25px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.official-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 38px;
    background-color: #ccd2d9;
}

.portal-title {
    font-size: 21px;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: -0.3px;
}

/* Red Links Utility */
.red-link {
    color: #c8221e;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.red-link:hover {
    color: #9e1410;
}

/* Main Login Container */
.login-container {
    border: 1px solid #c0c6ce;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Login Header Red Bar */
.login-header-bar {
    background: linear-gradient(to bottom, #d6332a 0%, #b81e19 100%);
    color: #ffffff;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.login-header-bar .lock-icon {
    display: flex;
    align-items: center;
}

.login-header-bar h2 {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2px;
}

/* Login Body Box */
.login-body {
    background-color: #f4f5f8;
    background: linear-gradient(to bottom, #fcfdfe 0%, #ebedef 100%);
    padding: 15px 20px 20px 20px;
}

/* Top Controls Row */
.login-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.register-pill {
    background: linear-gradient(to bottom, #ffffff 0%, #e2e6eb 100%);
    border: 1px solid #b5bdc6;
    border-radius: 4px;
    padding: 6px 20px;
    font-size: 13px;
    color: #444444;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-virtual-kb {
    background: #ffffff;
    border: 1px solid #c8221e;
    color: #c8221e;
    font-weight: bold;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-virtual-kb:hover {
    background: #c8221e;
    color: #ffffff;
}

/* Login Form + Keyboard Grid */
.login-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
}

.form-row {
    display: flex;
    align-items: center;
}

.field-label {
    width: 90px;
    font-size: 13px;
    color: #444444;
    font-weight: normal;
}

.login-with-row .radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-label {
    font-size: 13px;
    color: #444444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.radio-label input[type="radio"] {
    accent-color: #c8221e;
    cursor: pointer;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.input-field {
    width: 165px;
    height: 26px;
    padding: 2px 8px;
    border: 1px solid #a3b0be;
    background-color: #eaf2fb;
    font-size: 13px;
    color: #111111;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: #c8221e;
    box-shadow: 0 0 3px rgba(200, 34, 30, 0.4);
}

.toggle-password-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.toggle-password-btn:hover {
    background-color: #d8dde3;
}

.toggle-password-btn svg {
    display: block;
}

.help-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #d8dde3;
    border: 1px solid #a3adb8;
    color: #666666;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.help-icon:hover {
    background-color: #c8221e;
    color: #ffffff;
    border-color: #c8221e;
}

.password-note-row {
    padding-left: 90px;
    margin-top: -6px;
}

.red-note {
    color: #c8221e;
    font-size: 11px;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-left: 90px;
    margin-top: 5px;
}

.btn-primary {
    background: linear-gradient(to bottom, #d6332a 0%, #b81e19 100%);
    border: 1px solid #9e1410;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
    padding: 4px 22px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #e43b32 0%, #c8221e 100%);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.form-links {
    padding-left: 90px;
    margin-top: 6px;
    font-size: 12px;
}

.form-links .pipe {
    color: #888888;
    margin: 0 4px;
}

/* Keyboard Section */
.keyboard-section {
    background: #eaecef;
    border: 1px solid #b8c0c8;
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vk-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vk-row {
    display: flex;
    justify-content: center;
    gap: 3px;
}

.vk-key {
    min-width: 25px;
    height: 25px;
    background: linear-gradient(to bottom, #ffffff 0%, #e2e6eb 100%);
    border: 1px solid #a3acb6;
    border-radius: 3px;
    color: #222222;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.vk-key:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #d4dae2 100%);
    border-color: #8894a2;
}

.vk-key:active, .vk-key.active-key {
    background: #c8221e;
    color: #ffffff;
    border-color: #9e1410;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vk-btn-wide {
    padding: 0 16px;
    min-width: 90px;
    font-size: 12px;
    background: linear-gradient(to bottom, #ededed 0%, #d5dadf 100%);
}

/* Resources Navigation Bar */
.resources-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px dashed #cccccc;
    border-bottom: 1px dashed #cccccc;
    padding: 8px 0;
    margin-bottom: 18px;
}

.resources-label {
    color: #666666;
    font-weight: bold;
    font-size: 13px;
}

.resources-links {
    display: flex;
    gap: 35px;
}

.resources-links a {
    font-size: 13px;
}

/* Security Banner */
.security-banner {
    margin-bottom: 22px;
}

.security-title {
    color: #c8221e;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.security-text {
    font-size: 11.5px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: justify;
}

.security-links {
    display: flex;
    justify-content: flex-start;
    gap: 120px;
}

.security-links a {
    font-size: 12px;
}

/* 4 Column Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 240px 1fr 1fr 1fr;
    gap: 15px;
    border-top: 1px dashed #cccccc;
    padding-top: 18px;
    margin-bottom: 20px;
}

.info-card {
    display: flex;
    flex-direction: column;
}

/* Card 1: Mobile App Card */
.mobile-app-card {
    background: linear-gradient(135deg, #a4b9c7 0%, #7d96a7 100%);
    border: 1px solid #738e9f;
    border-radius: 2px;
    padding: 12px;
    color: #1e2c38;
}

.promo-title {
    font-size: 13px;
    font-weight: bold;
    color: #152533;
    margin-bottom: 6px;
    line-height: 1.3;
}

.promo-text {
    font-size: 11px;
    color: #2b3e4f;
    margin-bottom: 10px;
    line-height: 1.3;
}

.mobile-app-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    padding: 4px;
}

.app-screenshot {
    width: 100%;
    max-height: 130px;
    object-fit: cover;
    border-radius: 3px;
}

/* Info Cards 2, 3, 4 */
.card-title {
    color: #c8221e;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.info-list {
    list-style-type: disc;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-list li {
    font-size: 11px;
    color: #444444;
    line-height: 1.35;
}

/* Footer Section */
.footer {
    border-top: 1px dashed #cccccc;
    padding-top: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-notes {
    flex: 1;
}

.footer-list {
    list-style-type: disc;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-list li {
    font-size: 11px;
    color: #555555;
    line-height: 1.4;
}

.footer-badge {
    display: flex;
    align-items: center;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    direction: rtl;
    border: 1px solid #c8221e;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: linear-gradient(to bottom, #d6332a 0%, #b81e19 100%);
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: bold;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body strong {
    color: #c8221e;
}

.modal-body span {
    font-weight: bold;
    color: #111111;
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #d0d7de;
}

.modal-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.modal-footer {
    padding: 10px 20px 18px 20px;
    display: flex;
    justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .login-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}
