/* ==========================================================================
   BambooSA Brand Modal Style - Admin Login (Fully Responsive)
   ========================================================================== */

.bamboosa-login-wrapper,
.bamboosa-login-wrapper * {
    box-sizing: border-box !important;
}

.bamboosa-login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: radial-gradient(circle at center, #f4f6f5 0%, #e5eae7 100%);
    position: relative;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Background overlay simulation */
.bamboosa-login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 38, 26, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

/* Modal-style Card */
.bamboosa-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin: auto auto;
    background: #ffffff;
    border-radius: 28px;
    padding: 40px 32px 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(23, 93, 49, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Top Branding */
.bamboosa-brand-header {
    text-align: center;
    margin-bottom: 22px;
}

.bamboosa-bamboo-icon {
    height: 68px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.bamboosa-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #175d31;
    margin: 0 0 2px 0;
    text-transform: uppercase;
}

.bamboosa-tagline {
    font-size: 11px;
    font-style: italic;
    color: #2e7d32;
    margin: 0 0 12px 0;
    letter-spacing: 0.2px;
}

.bamboosa-green-divider {
    width: 44px;
    height: 3.5px;
    background: #175d31;
    border-radius: 4px;
    margin: 0 auto 18px auto;
}

.bamboosa-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #174d28;
    margin: 0 0 6px 0;
}

.bamboosa-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 22px 0;
    padding: 0 5px;
}

/* Input Fields */
.bamboosa-field-group {
    margin-bottom: 16px;
    text-align: left;
    width: 100%;
}

.bamboosa-input-container {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #d1e7dd;
    border-radius: 14px;
    overflow: hidden;
    background: #eef4ff;
    transition: all 0.25s ease;
    width: 100%;
}

.bamboosa-input-container:focus-within {
    border-color: #175d31;
    box-shadow: 0 0 0 3px rgba(23, 93, 49, 0.15);
}

.bamboosa-input-icon-box {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    color: #2e7d32;
    font-size: 16px;
    flex-shrink: 0;
}

.bamboosa-input-field {
    flex: 1 1 auto;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 13px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    height: auto !important;
    min-width: 0;
    width: 100%;
}

.bamboosa-input-field::placeholder {
    color: #94a3b8 !important;
    font-weight: 400;
}

.bamboosa-input-field:focus {
    outline: none !important;
    box-shadow: none !important;
}

.bamboosa-eye-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.bamboosa-eye-btn:hover {
    color: #475569;
}

.bamboosa-eye-btn:focus {
    outline: none;
}

.bamboosa-error-msg {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 4px;
    margin-bottom: 0;
    font-weight: 500;
}

/* Action Button */
.bamboosa-submit-pill {
    width: 100%;
    margin-top: 14px;
    padding: 14px 20px;
    background: #174d28;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(23, 77, 40, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bamboosa-submit-pill:hover:not(:disabled) {
    background: #133f21;
    transform: translateY(-1.5px);
    box-shadow: 0 10px 24px rgba(23, 77, 40, 0.32);
    color: #ffffff;
}

.bamboosa-submit-pill:active:not(:disabled) {
    transform: translateY(0);
}

.bamboosa-submit-pill:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Subtle Card Footer */
.bamboosa-modal-footer {
    margin-top: 20px;
    text-align: center;
}

.bamboosa-footer-text {
    font-size: 11.5px;
    color: #64748b;
    margin: 0;
}

.bamboosa-footer-text span {
    color: #175d31;
    font-weight: 600;
}

/* Page Bottom Copyright Footer - Transparent & Pinned to Bottom */
.bamboosa-login-footer {
    margin-top: auto;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 16px 16px 8px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bamboosa-login-footer .footer-copyright-text {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.1px;
    background: transparent !important;
}

/* Mobile Screens (<= 480px) */
@media screen and (max-width: 480px) {
    .bamboosa-login-wrapper {
        padding: 20px 14px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .bamboosa-login-card {
        padding: 28px 18px 24px;
        border-radius: 24px;
        max-width: 100%;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    }

    .bamboosa-bamboo-icon {
        height: 58px;
        margin-bottom: 6px;
    }

    .bamboosa-brand-name {
        font-size: 16px;
    }

    .bamboosa-tagline {
        font-size: 10.5px;
        margin-bottom: 10px;
    }

    .bamboosa-green-divider {
        margin-bottom: 14px;
    }

    .bamboosa-card-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .bamboosa-card-desc {
        font-size: 12px;
        margin-bottom: 18px;
        padding: 0;
    }

    .bamboosa-input-icon-box {
        width: 44px;
        font-size: 15px;
    }

    .bamboosa-input-field {
        font-size: 13.5px !important;
        padding: 12px 12px !important;
    }

    .bamboosa-submit-pill {
        padding: 13px 18px;
        font-size: 15px;
        margin-top: 10px;
    }

    .bamboosa-modal-footer {
        margin-top: 16px;
    }

    .bamboosa-footer-text {
        font-size: 11px;
    }

    .bamboosa-login-footer {
        margin-top: 16px;
    }

    .bamboosa-login-footer .footer-copyright-text {
        font-size: 11px;
    }
}