/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    /* Prevent scrolling if possible */
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Panel */
.left-panel {
    width: 45%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    box-sizing: border-box;
}

.logo-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.bb-logo {
    width: auto;
    height: 85px;
    /* Adjust height to fit header nicely */
    background-color: transparent;
    /* Remove yellow box if the new logo has transparent bg and text */
    padding: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.access-text {
    font-size: 14px;
    color: #333;
}

.bank-name {
    font-size: 24px;
    font-weight: 700;
    color: black;
    line-height: 1.1;
}

.main-text p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
    max-width: 400px;
}

.sub-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.help-link {
    color: #446bf2;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 40px;
}

.help-link:hover {
    text-decoration: underline;
}

.install-btn {
    background-color: #fff200;
    /* Bright yellow */
    border: none;
    padding: 15px 30px;
    color: #446bf2;
    /* Blue text */
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 2px;
}

.install-btn:hover {
    background-color: #e6d900;
}

/* Right Panel */
.right-panel {
    flex: 1;
    background-image: url('bakery_hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Promo Box */
.promo-box {
    position: absolute;
    bottom: 30px;
    right: 80px;
    /* Space for chat icon */
    background-color: #446bf2;
    /* Blue base */
    width: 320px;
    border-radius: 4px;
    color: white;
    padding: 0;
    font-size: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.promo-header {
    background-color: #5d82f0;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.close-x {
    cursor: pointer;
    font-size: 16px;
}

.promo-body {
    padding: 15px;
    line-height: 1.4;
}

.promo-btn {
    width: 90%;
    margin: 0 auto 15px auto;
    display: block;
    background-color: #fff200;
    border: none;
    padding: 10px;
    color: #446bf2;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.chat-floating {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background-color: #2d52c6;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 12px;
    /* Chat bubble shape */
    border: 2px solid white;
    cursor: pointer;
}

/* ... Existing styles ... */

/* Login Replica Specific */
.login-page-body {
    background-color: white;
}

.login-form-panel {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0wIDBoNDB2NDBIMHoiIGZpbGw9IiNmZmYiLz4KPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMSIgZmlsbD0iI2RiZGJkYiIvPgo8L3N2Zz4=');
    /* Faint dot/icon pattern placeholder */
    background-size: 40px 40px;
    align-items: flex-start;
    /* Top align content */
    padding-top: 100px;
    /* Offset from top */
    justify-content: flex-start;
}

.login-content-wrapper {
    width: 100%;
    max-width: 400px;
}

.bb-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.form-select,
.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    background-color: #fff;
    border-color: #446bf2;
    outline: none;
}

.access-tabs {
    display: flex;
    gap: 5px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background-color: #e8f0fe;
    /* Light blue tint */
    color: #2d52c6;
    /* Blue text */
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    background-color: #fff200;
    /* Bright yellow */
    color: #2d52c6;
    /* Blue text */
    font-weight: 700;
}

.error-msg-inline {
    display: none;
    color: red;
    font-size: 12px;
    margin-top: 2px;
}

.forgot-link {
    color: #2d52c6;
    font-size: 13px;
    text-decoration: none;
    margin-top: -5px;
    display: inline-block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.login-submit-btn {
    background-color: #fff200;
    color: #3b5cb8;
    /* Or just darker blue/black text */
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #e6d900;
}

.login-footer-small {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 10px;
    color: #999;
}

/* Right Panel Login Bg */
.login-hero-bg {
    /* Fallback color if image fails */
    background-color: #ddd;
    /* Placeholder or use the previously generated image or generate new when quota resets */
    /* Since generation failed, we can use a nice unsplash placeholder URL or solid color for now */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
}

/* Modal Styles - Restored */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 4px;
    width: 350px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Roboto', sans-serif;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content p {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-btn {
    padding: 10px 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    transition: background 0.2s;
}

.modal-btn.yes {
    background-color: #fff200;
    color: #2d52c6;
    font-weight: 700;
}

.modal-btn.yes:hover {
    background-color: #e6d900;
}

.modal-btn.no {
    background-color: #ddd;
    color: #333;
}

.modal-btn.no:hover {
    background-color: #ccc;
}

@media (max-width: 900px) {

    body,
    html {
        overflow-y: auto !important;
    }

    /* Stack columns vertically */
    .split-container {
        flex-direction: column;
        height: auto;
    }

    /* Full width panels */
    .left-panel {
        width: 100%;
        min-height: auto;
        padding: 40px 20px;
        order: 1;
        /* Content on top */
    }

    .right-panel {
        width: 100%;
        height: 300px;
        /* Image visible at bottom */
        order: 2;
        background-size: cover;
    }

    /* Hide promo box on mobile to avoid clutter */
    .promo-box {
        display: none;
    }
}