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

body {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #212121;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #cdd4d6;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    padding-left: 0;
}

.navbar-brand,
.navbar-brand.logo-en {
    background: url(/images/fibank-logo.png) no-repeat;
    display: block;
    width: 226px;
    height: 50px;
    margin-top: 5px;
    margin-left: -100px !important;
}

.navbar-brand img {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin-left: 113px;
    margin-right: 200px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-register {
    background: #eaeaea;
    color: #212121;
    padding: 8px 24px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    position: absolute;
    right: 0;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background: #d4d4d4;
}

.login-form {
    margin-top: 100px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 376px 344px;
    gap: 40px;
    justify-content: center;
}

.left-column {
    width: 376px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
}

.login-box,
.security-box {
    width: 100%;
    background: #fff;
    border: 1px solid #cdd4d6;
    border-radius: 4px;
    padding: 24px;
}

.login-box h1 {
    font-size: 24px;
    color: #212121;
    font-weight: normal;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ff0000;
}

.required-note {
    float: right;
    color: #666;
    font-size: 12px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 34px;
    border: 1px solid #bec4d6;
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #003399;
    outline: none;
}

.lost-password {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.lost-password:hover {
    color: #003399;
}

.btn-login {
    width: 100%;
    height: 46px;
    background: #428bca;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background: #357ebd;
}

.btn-login.active {
    background: #003399;
}

.btn-login.active:hover {
    background: #002266;
}

.promo-cards {
    width: 344px;
    height: 392px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-box {
    background: #fff;
    border: 1px solid #cdd4d6;
    border-radius: 4px;
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.security-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.security-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.security-info p a {
    color: #003399;
    text-decoration: none;
}

.security-info .date {
    display: block;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 16px;
}

.security-links {
    display: flex;
    justify-content: space-between;
    height: 36.34px;
    width: 100%;
    margin-top: 10px;
    margin-left: -8px;
}

.security-link {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 5px;
    background: #F3F3F3;
    border-radius: 2px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.security-link .icon {
    color: #666666;
    font-size: 14px;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-link::after {
    content: '>';
    margin-left: auto;
    color: #666666;
    font-size: 12px;
}

.security-link:hover {
    background: #e9e9e9;
}

footer {
    background: #f2f2f2;
    padding: 40px 0;
    margin-top: auto;
}

.footer-info {
    text-align: center;
    margin-bottom: 30px;
}

.footer-info h5 {
    color: #212121;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 20px;
}

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

.footer-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 0 30px;
    border-right: 1px solid #cdd4d6;
}

.footer-link:last-child {
    border-right: none;
}

.footer-link .icon {
    margin-right: 8px;
    color: #666;
}

.footer-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 0 15px;
    border-right: 1px solid #cdd4d6;
}

.footer-nav a:last-child {
    border-right: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #666;
    transition: color 0.2s;
}

.icon:hover {
    color: #003399;
}

.icon-user { 
    background-image: url('/images/ic_user_normal.png');
}
.icon-user:hover { 
    background-image: url('/images/ic_user_hover.png');
}

.icon-lock { 
    background-image: url('/images/ic_password_normal.png');
}
.icon-lock:hover { 
    background-image: url('/images/ic_password_hover.png');
}

.icon-website { 
    background-image: url('/images/ic_to_site_normal.png');
}
.icon-website:hover { 
    background-image: url('/images/ic_to_site_hover.png');
}

.icon-mobile { 
    background-image: url('/images/ic_app_full_normal.png');
    width: 32px;
    font-size: 20px;
}
.icon-mobile:hover { 
    background-image: url('/images/ic_app_full_hover.png');
}

.icon-changes { 
    background-image: url('/images/ic_tariff_changes_normal.png');
}
.icon-changes:hover { 
    background-image: url('/images/ic_tariff_changes_hover.png');
}

.icon-help { 
    background-image: url('/images/ic_help_normal.png');
}
.icon-help:hover { 
    background-image: url('/images/ic_help_hover.png');
}

.icon-shield { 
    background-image: url('/images/ic_security_advice_normal.png');
}
.icon-shield:hover { 
    background-image: url('/images/ic_security_advice_hover.png');
}

.icon-question { 
    background-image: url('/images/ic_faq_normal.png');
}
.icon-question:hover { 
    background-image: url('/images/ic_faq_hover.png');
}

.icon-phone { 
    background-image: url('/images/ic_phone_normal.png');
    width: 18px;
    height: 18px;
}
.icon-phone:hover { 
    background-image: url('/images/ic_phone_hover.png');
}

.icon-mail { 
    background-image: url('/images/ic_mail_normal.png');
    width: 20px;
    height: 14px;
}
.icon-mail:hover { 
    background-image: url('/images/ic_mail_hover.png');
}

.icon-office { 
    background-image: url('/images/ic_offices_normal.png');
}
.icon-office:hover { 
    background-image: url('/images/ic_offices_hover.png');
}

.icon-atm { 
    background-image: url('/images/ic_atm_normal.png');
}
.icon-atm:hover { 
    background-image: url('/images/ic_atm_hover.png');
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    background: #fff;
    border: 1px solid #cdd4d6;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    left: -112px;
    top: 52px;
    min-width: 280px;
    padding: 0;
}

.dropdown-menu:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 12px;
    background: url('/images/img_menu_pointer.png') no-repeat;
    position: absolute;
    top: -12px;
    left: 125px;
}

.dropdown-menu h3 {
    height: 47px;
    padding: 14px 17px;
    font-size: 20px;
    margin: 0;
}

.dropdown-menu a {
    height: 40px;
    padding: 7px 17px;
    font-size: 16px;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #eaeaea;
    color: #3f51b5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-app {
    width: 276px;
    height: 275px;
    padding: 225px 20px 0;
    background: url('/images/img_menu_app_new.png') no-repeat;
    left: -80px;
}

.menu-app h3 {
    position: absolute;
    top: 21px;
    color: #fff;
    width: 120px;
    white-space: pre-line;
}

.ssl-info {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 2px;
}

.ssl-info p {
    font-size: 14px;
    color: #666;
}

.ssl-info a {
    color: #3f51b5;
    text-decoration: none;
}

.thawte {
    margin: 15px 0;
}

.help-links {
    margin-top: 20px;
}

.help-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.help-link i {
    margin-right: 8px;
}

.help-link .icon-arrow {
    margin-left: auto;
}

.info-box {
    background-color: #f8f8f8;
    padding: 27px 0 25px;
    margin-top: auto;
}

.info-box h5 {
    margin-top: 23px;
    font-size: 17px;
    color: #212121;
    text-transform: uppercase;
}

.contact-info {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.contact-info i {
    margin-right: 10px;
}

.blue-txt {
    color: #3f51b5;
    font-weight: bold;
}

.location-info {
    margin-top: 13px;
}

.location-info a {
    color: #212121;
    border-right: 1px solid #cdd4d6;
    padding: 0 20px;
}

.location-info li:last-child a {
    border-right: none;
}

.text-center { text-align: center; }
.s2 { font-size: 14px; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .login-form {
        margin: 20px;
    }
}

.header {
    background: #fff;
    border-bottom: 1px solid #cdd4d6;
    height: 60px;
    margin-bottom: 30px;
}

.header-logo {
    width: 226px;
    height: 50px;
    margin: 5px 16px;
}

.header-links {
    margin: auto 97px auto 13px;
}

.header-links a {
    color: #666;
    font-size: 16px;
}

.btn-register:hover {
    background: #d4d4d4;
}

.promo-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-card {
    display: block;
    width: 100%;
    height: 91.8px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promo-card:nth-child(1) {
    background-image: url('/images/potrebitelski-credit-ready-banner-en3.png');
}

.promo-card:nth-child(2) {
    background-image: url('/images/credit-cards-online-ready-banner-en.png');
}

.promo-card:nth-child(3) {
    background-image: url('/images/jilishten-credit-ready-banner-en.png');
}

.promo-card:nth-child(4) {
    background-image: url('/images/video-consult-ready-banner-en.png');
}

.promo-container {
    width: 384px;
    margin-left: auto;
}

.form-signin {
    width: 376px;
    background: #fff;
    border: 1px solid #cdd4d6;
    border-radius: 4px;
    padding: 20px;
}

.form-signin-heading {
    font-size: 24px;
    line-height: 1;
    color: #212121;
    font-weight: normal;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 8px;
}

.form-group label .red-txt {
    color: #ff0000;
    margin-right: 4px;
}

.form-group label.pull-right {
    float: right;
    color: #666;
}

.form-control-icon {
    position: relative;
}

.form-control-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.i-user-normal {
    background: url('/images/ic_user_normal.png') no-repeat center;
}

.i-password {
    background: url('/images/ic_password.png') no-repeat center;
}

.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px 0 34px;
    font-size: 16px;
    line-height: 40px;
    color: #212121;
    border: 1px solid #bec4c6;
    border-radius: 2px;
    background: #fff;
}

.form-control:focus {
    border-color: #3f51b5;
    outline: none;
}

.lost-password--position {
    margin-top: 8px;
}

.lost-password--position a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.lost-password--position a:hover {
    color: #3f51b5;
}

.btn-primary {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 20px;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: #003399;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.btn-primary:disabled {
    background: #92b1d9;
    cursor: not-allowed;
}

.red-txt {
    color: #ff0000;
}

.form-group p.pull-right.red-txt {
    font-size: 14px;
    margin-top: 4px;
}

.hidden {
    display: none;
}

.input-wrapper .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.input-wrapper:focus-within .icon {
    opacity: 1;
    color: #003399;
}

.input-wrapper:focus-within .icon-lock {
    background-image: url('/images/ic_password_hover.png');
}

.logo-date {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.thawte-logo {
    height: 40px;
}

.date {
    margin-left: 16px;
    color: #666;
    font-size: 14px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #003399;
    font-size: 20px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.otp-icon {
    font-size: 48px;
    color: #003399;
    margin-bottom: 20px;
}

.modal-text {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.otp-input {
    width: 100px;
    height: 46px;
    border: 2px solid #cdd4d6;
    border-radius: 4px;
    font-size: 20px;
    text-align: center;
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: #003399;
    outline: none;
}

.otp-separator {
    font-size: 24px;
    color: #666;
}

.otp-timer {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.btn-verify {
    width: 100%;
    height: 46px;
    background: #003399;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-verify:hover {
    background: #002266;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-content p {
    margin-top: 20px;
    color: #003399;
    font-size: 18px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003399;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 